/* ============================================================
   LOGIN PAGE STYLES
   Split layout with illustration and form
   ============================================================ */

/* Page Layout */
.login-page {
    min-height: 100vh;
    background: var(--nuuko-cream);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 72px; /* Nav height */
}

/* ============================================================
   LEFT SIDE - ILLUSTRATION
   ============================================================ */

.login-illustration {
    background: linear-gradient(135deg,
        rgba(107, 143, 113, 0.08) 0%,
        rgba(154, 107, 81, 0.06) 50%,
        rgba(107, 143, 113, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.login-illustration-content {
    position: relative;
    text-align: center;
    max-width: 400px;
    z-index: 1;
}

/* Decorative Circles */
.login-deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

.login-deco-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 143, 113, 0.15) 0%, transparent 70%);
    top: 10%;
    left: -10%;
}

.login-deco-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(154, 107, 81, 0.12) 0%, transparent 70%);
    bottom: 20%;
    right: -5%;
}

.login-deco-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(107, 143, 113, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
}

/* Main Illustration Area */
.login-illustration-main {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto var(--space-2xl);
}

.login-illustration-character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(243, 239, 229, 0.95) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 50px rgba(61, 52, 44, 0.12),
        0 8px 25px rgba(107, 143, 113, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: gentlePulse 4s ease-in-out infinite;
}

.login-feather-img {
    width: 90px;
    height: 90px;
    animation: float 4s ease-in-out infinite;
}

/* Floating Icons */
.login-floating-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(141, 135, 126, 0.1);
    color: var(--nuuko-green);
}

.login-floating-1 {
    top: 15%;
    right: 10%;
    animation: floatIcon 5s ease-in-out infinite;
}

.login-floating-2 {
    top: 30%;
    left: 5%;
    animation: floatIcon 4s ease-in-out infinite 0.5s;
    color: var(--nuuko-clay);
}

.login-floating-3 {
    bottom: 25%;
    right: 5%;
    animation: floatIcon 4.5s ease-in-out infinite 1s;
}

.login-floating-4 {
    bottom: 15%;
    left: 15%;
    animation: floatIcon 5.5s ease-in-out infinite 1.5s;
    color: var(--nuuko-stone);
}

/* Illustration Text */
.login-illustration-text h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--nuuko-espresso);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.login-illustration-text p {
    font-size: 1rem;
    color: var(--nuuko-stone);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   RIGHT SIDE - FORM
   ============================================================ */

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: var(--nuuko-cream-light);
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Header */
.login-form-header {
    margin-bottom: var(--space-2xl);
}

.login-form-header h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--nuuko-espresso);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.login-form .form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--nuuko-espresso);
}

.login-form .form-group input {
    padding: 0.9rem 1rem;
    border: 1.5px solid rgba(141, 135, 126, 0.25);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: #fff;
    color: var(--nuuko-espresso);
    transition: all 0.2s ease;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--nuuko-green);
    box-shadow: 0 0 0 3px rgba(107, 143, 113, 0.12);
}

.login-form .form-group input::placeholder {
    color: var(--nuuko-stone);
    opacity: 0.6;
}

/* Error Message */
.login-error {
    background: rgba(214, 126, 126, 0.12);
    border: 1px solid rgba(214, 126, 126, 0.25);
    color: #b54747;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

/* Submit Button */
.login-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--nuuko-green) 0%, var(--nuuko-green-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s var(--ease-gentle);
    box-shadow: 0 4px 15px rgba(107, 143, 113, 0.25);
    margin-top: var(--space-sm);
}

.login-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--nuuko-green-dark) 0%, var(--nuuko-green) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(107, 143, 113, 0.35);
}

.login-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-btn-spinner {
    animation: spin 1s linear infinite;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(141, 135, 126, 0.2);
}

.login-divider span {
    font-size: 0.85rem;
    color: var(--nuuko-stone);
    white-space: nowrap;
}

/* Social Login */
.login-social {
    display: flex;
    gap: var(--space-md);
}

.login-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1.5px solid rgba(141, 135, 126, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--nuuko-espresso);
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-social-btn:hover {
    border-color: rgba(107, 143, 113, 0.4);
    background: rgba(107, 143, 113, 0.03);
    transform: translateY(-1px);
}

/* Footer Links */
.login-footer {
    margin-top: var(--space-xl);
    text-align: center;
}

.login-footer p {
    font-size: 0.9rem;
    color: var(--nuuko-stone);
    margin: 0 0 var(--space-sm);
}

.login-link {
    color: var(--nuuko-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: var(--nuuko-green-dark);
}

.login-forgot-link {
    font-size: 0.85rem;
}

/* Privacy Note */
.login-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(141, 135, 126, 0.1);
    font-size: 0.8rem;
    color: var(--nuuko-stone);
}

.login-privacy svg {
    opacity: 0.7;
}

.login-privacy a {
    color: var(--nuuko-green);
    text-decoration: none;
}

.login-privacy a:hover {
    text-decoration: underline;
}

/* Consent Checkbox */
.form-group-consent {
    margin-top: var(--space-xs);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--nuuko-espresso);
    cursor: pointer;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--nuuko-green);
    cursor: pointer;
    flex-shrink: 0;
}

.consent-link {
    color: var(--nuuko-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-link:hover {
    color: var(--nuuko-green-dark);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes gentlePulse {
    0%, 100% {
        box-shadow:
            0 20px 50px rgba(61, 52, 44, 0.12),
            0 8px 25px rgba(107, 143, 113, 0.1),
            inset 0 2px 4px rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow:
            0 20px 50px rgba(61, 52, 44, 0.15),
            0 8px 25px rgba(107, 143, 113, 0.15),
            0 0 0 15px rgba(107, 143, 113, 0.03),
            inset 0 2px 4px rgba(255, 255, 255, 0.6);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-illustration {
        display: none;
    }

    .login-form-section {
        min-height: calc(100vh - 72px);
        padding: var(--space-2xl) var(--space-lg);
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .login-form-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: var(--space-lg);
    }

    .login-form-header h1 {
        font-size: 1.35rem;
    }

    .login-social {
        flex-direction: column;
    }

    .login-form .form-group input {
        padding: 0.8rem 0.9rem;
    }

    .login-submit-btn {
        padding: 0.9rem 1.25rem;
    }
}

/* ============================================================
   NAV AUTH BUTTONS
   Styles for login/signup buttons in navigation
   ============================================================ */

.landing-nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: var(--space-md);
}

.landing-btn-login {
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--nuuko-green);
    border: 1.5px solid var(--nuuko-green);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.landing-btn-login:hover {
    background: rgba(107, 143, 113, 0.08);
    color: var(--nuuko-green-dark);
    border-color: var(--nuuko-green-dark);
}

.landing-btn-signup {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--nuuko-green) 0%, var(--nuuko-green-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(107, 143, 113, 0.25);
}

.landing-btn-signup:hover {
    background: linear-gradient(135deg, var(--nuuko-green-dark) 0%, var(--nuuko-green) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 143, 113, 0.35);
}

/* Mobile nav auth buttons */
@media (max-width: 600px) {
    .landing-nav-auth {
        width: 100%;
        flex-direction: column;
        gap: var(--space-sm);
        margin-left: 0;
        margin-top: var(--space-sm);
    }

    .landing-btn-login,
    .landing-btn-signup {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }
}
