/* Back Link */
.back-link {
    position: absolute;
    top: 2rem;
    right: 2rem;
    left: auto;
    z-index: 10;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
    /* changed from (-3px) */
}


.back-link svg {
    width: 18px;
    height: 18px;
}

/* Smaller Logo for Login Page */
.logo-section-small {
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.logo-circle-small {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF6B6B, #FDB462);
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo-circle-small .logo-icon {
    width: 42px;
    height: 42px;
}

.brand-name-small {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

/* Login Card */
.login-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px var(--card-shadow);
    max-width: 440px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
}

/* Error Messages */
.messages-container {
    margin-bottom: 1.5rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2D3748;
}

.label-icon {
    width: 16px;
    height: 16px;
    color: #718096;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    color: #2D3748;
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input::placeholder {
    color: #A0AEC0;
}

.form-input:focus {
    border-color: #FDB462;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(253, 180, 98, 0.1);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #718096;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2D3748;
}

.toggle-password.active {
    color: #FDB462;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4A5568;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #FDB462;
}

.forgot-link {
    font-size: 0.875rem;
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #FDB462;
    text-decoration: underline;
}

/* Login Button */
.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #FF6B6B, #FDB462);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 180, 98, 0.3);
    margin-top: 0.5rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 180, 98, 0.5);
}

.login-button:active {
    transform: translateY(0);
}

.login-button .button-arrow {
    width: 18px;
    height: 18px;
}

/* Login Footer */
.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #718096;
    text-align: center;
    line-height: 1.5;
}

.info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-link {
        top: 1.5rem;
        right: 1.5rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .back-link {
        top: 1rem;
        right: 1rem;
    }

    .back-link a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .logo-circle-small {
        width: 60px;
        height: 60px;
    }

    .logo-circle-small .logo-icon {
        width: 36px;
        height: 36px;
    }

    .brand-name-small {
        font-size: 1.75rem;
    }

    .login-card {
        padding: 1.75rem 1.25rem;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .login-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}