:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #f0f2f5;
    --border: #dee2e6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--dark);
    line-height: 1.6;
}

.auth-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-illustration {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.login-illustration:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.3);
}

.login-illustration::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

.login-content {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    justify-content: center;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.logo img {
    height: 70px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.welcome-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.floating-label {
    position: absolute;
    top: 18px;
    left: 15px;
    color: var(--secondary);
    pointer-events: none;
    transition: var(--transition);
    background: white;
    padding: 0 5px;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 18px 15px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-control:focus+.floating-label,
.form-control:not(:placeholder-shown)+.floating-label {
    top: -10px;
    left: 12px;
    font-size: 13px;
    color: var(--primary);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.forgot-password {
    text-align: right;
    margin-top: -15px;
    margin-bottom: 25px;
}

.forgot-password a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    padding: 0 15px;
    color: var(--gray);
    font-size: 14px;
}

.btn-google {
    background: #fff;
    color: #757575;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google:active {
    transform: translateY(0);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.illustration-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.illustration-text {
    font-size: 16px;
    text-align: center;
    max-width: 400px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.illustration-img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.login-illustration:hover .illustration-img {
    transform: scale(1.05);
}

.click-hint {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: var(--gray);
}

.mobile-click-hint {
    display: none;
    text-align: center;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 12px;
    border: 1px dashed var(--primary);
    border-radius: 10px;
    margin: 15px 0 20px;
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
    }

    .login-illustration {
        display: none;
    }

    .login-content {
        width: 100%;
        padding: 40px 25px !important;
    }

    .logo img {
        height: 60px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .form-control {
        padding: 16px 12px;
        font-size: 16px;
    }

    .btn-login {
        padding: 14px;
    }

    .mobile-click-hint {
        display: block;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-content {
        padding: 30px 20px !important;
    }

    .logo {
        margin-bottom: 20px;
    }

    .logo img {
        height: 50px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}