﻿/* ============================================================
   auth.css — JobJournal Auth Pages (Login, Register, Logout)
   Place in: wwwroot/css/components/auth.css
   ============================================================ */

.auth-wrapper {
    margin-left: -12px;
    margin-right: -12px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
}

/* ── LEFT PANEL ── */
.auth-panel-left {
    flex: 0 0 44%;
    background: linear-gradient(145deg, #064e3b 0%, #065f46 50%, #047857 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

    /* dot grid texture */
    .auth-panel-left::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
        background-size: 26px 26px;
        pointer-events: none;
    }

    /* bottom-right glow orb */
    .auth-panel-left::after {
        content: '';
        position: absolute;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(52,211,153,0.16) 0%, transparent 65%);
        bottom: -180px;
        right: -140px;
        pointer-events: none;
    }

/* top-left glow orb */
.auth-orb-top {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,211,153,0.1) 0%, transparent 65%);
    top: -90px;
    left: -70px;
    pointer-events: none;
}

.auth-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
}

/* brand logo */
.auth-brand-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

    .auth-brand-logo .brand-accent {
        color: #6ee7b7;
    }

    .auth-brand-logo:hover {
        color: #ffffff;
        text-decoration: none;
    }
/* illustration — intentionally smaller with breathing room via gap in parent */
.auth-illustration {
    width: 100%;
    max-width: 260px;
    animation: auth-float 5s ease-in-out infinite;
    filter: drop-shadow(0 16px 32px rgba(0,0,0,0.22));
}

@keyframes auth-float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* tagline */
.auth-tagline h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-tagline p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    font-weight: 400;
}

/* feature badges */
.auth-panel-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.77rem;
    color: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
}

/* ── RIGHT PANEL ── */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #ffffff;
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
}

/* form header */
.auth-form-header {
    margin-bottom: 32px;
}

    .auth-form-header h1 {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 1.75rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 6px;
    }

    .auth-form-header p {
        font-size: 0.9rem;
        color: #6b7280;
        margin: 0;
    }

        .auth-form-header p a {
            color: #059669;
            font-weight: 500;
            text-decoration: none;
        }

            .auth-form-header p a:hover {
                text-decoration: underline;
            }

/* fields */
.auth-field {
    margin-bottom: 18px;
}

    .auth-field label {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .auth-field .form-control {
        width: 100%;
        padding: 11px 14px;
        border: 1.5px solid #e5e7eb;
        border-radius: 8px;
        font-size: 0.95rem;
        color: #111827;
        background: #ffffff;
        transition: border-color 0.2s, box-shadow 0.2s;
        outline: none;
        display: block;
    }

        .auth-field .form-control:focus {
            border-color: #059669;
            box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
        }

        .auth-field .form-control.input-validation-error {
            border-color: #ef4444;
        }

    .auth-field .text-danger {
        font-size: 0.78rem;
        margin-top: 4px;
        display: block;
        color: #ef4444;
    }

/* remember me + forgot row */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #6b7280;
    cursor: pointer;
    margin: 0;
}

    .auth-remember-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #059669;
        cursor: pointer;
        flex-shrink: 0;
    }

.auth-forgot-link {
    font-size: 0.88rem;
    color: #059669;
    text-decoration: none;
    font-weight: 500;
}

    .auth-forgot-link:hover {
        color: #059669;
        text-decoration: underline;
    }

/* submit button */
.btn-auth-submit {
    width: 100%;
    padding: 12px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(5,150,105,0.28);
    letter-spacing: 0.01em;
}

    .btn-auth-submit:hover {
        background: #047857;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(5,150,105,0.36);
        color: #ffffff;
    }

    .btn-auth-submit:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(5,150,105,0.2);
    }

/* divider */
.auth-divider {
    text-align: center;
    margin: 28px 0 20px;
    position: relative;
    color: #9ca3af;
    font-size: 0.82rem;
}

    .auth-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e5e7eb;
    }

    .auth-divider span {
        position: relative;
        background: #ffffff;
        padding: 0 12px;
    }

/* secondary links */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

    .auth-links a {
        font-size: 0.88rem;
        color: #9ca3af;
        text-decoration: none;
        transition: color 0.15s;
    }

        .auth-links a:hover {
            color: #059669;
        }

/* validation summary */
.auth-validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #b91c1c;
}

    .auth-validation-summary ul {
        margin: 0;
        padding-left: 16px;
    }

        .auth-validation-summary ul li[style*="display:none"] {
            display: none;
        }

    .auth-validation-summary:has(ul:empty),
    .auth-validation-summary:has(li[style*="display:none"]:only-child) {
        display: none;
    }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 16px;
        align-items: flex-start;
    }

    .auth-card {
        flex-direction: column;
        border-radius: 16px;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .auth-panel-left {
        display: none;
    }

    .auth-panel-right {
        padding: 36px 24px;
    }
}

/* ── BADGES BELOW CARD ── */
.auth-below-card-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.auth-below-badge {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.78rem;
    color: #6b7280;
}

/* ── GOOGLE BUTTON ── */
.btn-google-signin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 14px;
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    .btn-google-signin:hover {
        border-color: #d1d5db;
        background: #f9fafb;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }


    /*Resend email confirmation*/
.auth-resend {
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.82rem;
    color: #9ca3af;
    text-align: center;
}

    .auth-resend a {
        color: #059669;
        text-decoration: none;
        font-weight: 500;
    }

        .auth-resend a:hover {
            text-decoration: underline;
        }


        /*Auth confirmation box*/
.auth-confirm-box {
    text-align: center;
}

.auth-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.6rem;
    color: #059669;
}

.auth-confirm-box h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.auth-confirm-box p {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.7;
}