/* ============================================================
   HackTheJD — Auth Screen (premium split layout)
   ============================================================ */

.auth-screen {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.auth-shell {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 440px);
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    width: 100%;
}

/* --- Left showcase --- */
.auth-showcase {
    position: relative;
    z-index: 1;
    animation: authRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(26, 109, 255, 0.08);
    border: 1px solid rgba(26, 109, 255, 0.18);
    color: #0d4fd6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.auth-showcase-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: authPulse 2s ease-in-out infinite;
}

.auth-showcase h1 {
    font-family: var(--font-display, "Fraunces", Georgia, serif);
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #07111f;
    margin-bottom: 1rem;
}

.auth-showcase h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #1a6dff, #2ec4b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-showcase-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(7, 17, 31, 0.68);
    max-width: 32rem;
    margin-bottom: 2rem;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    max-width: 34rem;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(7, 17, 31, 0.08);
}

.auth-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(26, 109, 255, 0.12), rgba(46, 196, 182, 0.12));
}

.auth-feature strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #07111f;
    margin-bottom: 0.15rem;
}

.auth-feature span {
    font-size: 0.82rem;
    color: rgba(7, 17, 31, 0.58);
    line-height: 1.45;
}

.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    font-size: 0.82rem;
    color: rgba(7, 17, 31, 0.5);
}

.auth-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Right card --- */
.auth-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(7, 17, 31, 0.08);
    border-radius: 28px;
    padding: 2.25rem 2rem 2rem;
    box-shadow:
        0 24px 60px rgba(7, 17, 31, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(20px);
    animation: authRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(26, 109, 255, 0.35), rgba(46, 196, 182, 0.2), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-card h2 {
    font-family: var(--font-display, "Fraunces", Georgia, serif);
    font-size: 1.65rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #07111f;
    margin-bottom: 0.35rem;
}

.auth-card-sub {
    font-size: 0.92rem;
    color: rgba(7, 17, 31, 0.55);
    margin-bottom: 1.75rem;
}

.auth-card-sub strong {
    color: #0d4fd6;
    font-weight: 700;
}

/* Google button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(7, 17, 31, 0.12);
    border-radius: 14px;
    color: #07111f;
    font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 14px rgba(7, 17, 31, 0.06);
}

.btn-google:hover {
    border-color: rgba(7, 17, 31, 0.2);
    box-shadow: 0 8px 24px rgba(7, 17, 31, 0.1);
    transform: translateY(-1px);
}

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

.btn-google:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-google svg {
    flex-shrink: 0;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.35rem 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(7, 17, 31, 0.08);
}

.auth-divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 0.85rem;
    color: rgba(7, 17, 31, 0.45);
    font-size: 0.82rem;
    font-weight: 500;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(7, 17, 31, 0.5);
    margin-bottom: 0.4rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.9rem 1rem;
    background: #f7f9fc;
    border: 1px solid rgba(7, 17, 31, 0.1);
    border-radius: 14px;
    font: inherit;
    font-size: 0.98rem;
    color: #07111f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(26, 109, 255, 0.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.12);
}

.auth-form input::placeholder {
    color: rgba(7, 17, 31, 0.35);
}

.btn-primary {
    width: 100%;
    padding: 0.95rem 1.25rem;
    margin-top: 0.25rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a6dff, #0d4fd6);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 12px 28px rgba(26, 109, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(26, 109, 255, 0.42);
}

.btn-primary:active {
    transform: scale(0.98);
}

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

.auth-switch {
    text-align: center;
    font-size: 0.88rem;
    color: rgba(7, 17, 31, 0.6);
    margin-top: 1.35rem;
}

.auth-switch a {
    color: #1a6dff;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-forgot {
    display: block;
    text-align: center;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: rgba(7, 17, 31, 0.5);
    text-decoration: none;
}

.auth-forgot:hover {
    color: #1a6dff;
}

/* Auth-only layout tweaks */
body.auth-mode .app {
    max-width: none;
    padding: 0;
}

body.auth-mode .footer {
    margin-top: 0;
}

body.auth-mode .header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(7, 17, 31, 0.06);
}

@keyframes authRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 960px) {
    .auth-shell {
        display: flex;
        flex-direction: column;
        max-width: 480px;
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .auth-card {
        order: -1;
    }

    .auth-showcase {
        text-align: center;
    }

    .auth-showcase-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-feature-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .auth-trust-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.35rem;
        border-radius: 22px;
    }
}
