/* Authentication Pages Styles */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    z-index: 10;
}

.back-link:hover {
    color: var(--accent-teal);
}

.auth-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    border: 2px solid var(--gray-300);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.3));
}

.auth-logo h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 32px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-teal), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 8px 0;
    text-align: center;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0 0 32px 0;
    text-align: center;
}

/* Error & Success Messages */
.error-message {
    background: #FEE;
    border: 1px solid #FCC;
    color: #C33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.3s ease;
}

.success-message {
    background: #EFE;
    border: 1px solid #CFC;
    color: #3C3;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: fadeInDown 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Google Sign In Button */
.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-btn:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.google-btn:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--gray-500);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.divider span {
    padding: 0 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 16px;
    color: var(--dark-text);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-500);
}

.password-input-wrapper {
    position: relative;
    display: block;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #6B7280;
}

.password-toggle:focus {
    outline: none;
}

.password-toggle svg {
    display: block;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--accent-teal);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-blue);
}

/* Primary Button */
.primary-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-600);
    font-size: 14px;
}

.auth-switch a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: var(--secondary-blue);
}

/* Terms Text */
.terms-text {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.5;
}

.terms-text a {
    color: var(--accent-teal);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 24px;
    }

    .back-link {
        top: 16px;
        left: 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 16px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-logo h1 {
        font-size: 24px;
    }

    .auth-logo .logo-icon {
        width: 40px;
        height: 40px;
    }
}
