@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --auth-bg-a: #f8fafc;
    --auth-bg-b: #ffffff;
    --auth-surface: #ffffff;
    --auth-border: #e5e7eb;
    --auth-text: #0f172a;
    --auth-muted: #6b7280;
    --auth-primary: #ef4444;
    --auth-primary-deep: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
        url('../images/663910607_977507174700059_2109660712684329952_n.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--auth-text);
    overflow-y: auto;
}

.reporter-v5-auth {
    background-image:
        radial-gradient(circle at 14% 16%, rgba(239, 68, 68, 0.17) 0, transparent 34%),
        radial-gradient(circle at 86% 14%, rgba(245, 158, 11, 0.13) 0, transparent 34%),
        linear-gradient(rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.56)),
        url('../images/663910607_977507174700059_2109660712684329952_n.webp');
}

.reporter-v5-auth .auth-shell {
    border-color: #e2e8f0;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.auth-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-shell {
    width: 100%;
    max-width: 980px;
    min-height: 620px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-left {
    background: var(--auth-surface);
    padding: 48px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header h1 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.auth-header p {
    margin: 0 0 18px;
    color: var(--auth-muted);
}

.auth-banner {
    margin-bottom: 18px;
    border: 1px solid #fee2e2;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--auth-muted);
}

.form-help-muted {
    color: #6b7280;
}

.auth-form label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.input-group {
    position: relative;
    margin-top: 6px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.input-group input {
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--auth-border);
    border-radius: 11px;
    padding: 11px 12px 11px 34px;
    font-size: 14px;
}

.input-group select {
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--auth-border);
    border-radius: 11px;
    padding: 11px 34px 11px 34px;
    font-size: 14px;
    background-color: #ffffff;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%),
        linear-gradient(to right, #ffffff, #ffffff);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px), 100% 0;
    background-size: 6px 6px, 6px 6px, 2.5em 100%;
    background-repeat: no-repeat;
}

.input-group input:focus {
    outline: none;
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.input-group select:focus {
    outline: none;
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.auth-btn {
    margin-top: 10px;
    border: 0;
    border-radius: 11px;
    min-height: 46px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-deep));
    color: #ffffff;
}

.auth-btn.ghost-btn {
    background: #e2e8f0;
    color: #0f172a;
}

.auth-btn.link-btn {
    width: 100%;
}

.auth-footer {
    margin-top: 18px;
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}

.auth-footer p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-footer a,
.auth-link {
    color: #b91c1c;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover,
.auth-link:hover {
    text-decoration: underline;
}

.reporter-register-v5 .form-help-danger {
    color: #dc2626;
}

.reporter-login-v5 .form-help-danger {
    color: #dc2626;
}

.auth-right {
    position: relative;
    color: #ffffff;
    background: linear-gradient(140deg, #ef4444 0%, #dc2626 60%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.auth-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.16) 0, transparent 34%), radial-gradient(circle at 76% 70%, rgba(255, 255, 255, 0.12) 0, transparent 36%);
}

.brand-block {
    position: relative;
    z-index: 1;
    max-width: 310px;
}

.brand-logo-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.28);
}

.brand-logo-wrap img {
    width: 190px;
    height: 190px;
    object-fit: contain;
}

.brand-block h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 2rem;
}

.brand-block p {
    margin: 0 0 22px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.92;
}

.brand-block ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 9px;
    font-size: 0.95rem;
}

.auth-compact .auth-shell.single-panel {
    max-width: 520px;
    min-height: auto;
    grid-template-columns: 1fr;
}

.auth-register-bg .auth-shell {
    max-height: calc(100vh - 40px);
}

.auth-register-bg .auth-left {
    justify-content: flex-start;
    overflow: hidden;
    padding: 28px 30px;
}

.auth-register-bg .auth-header p {
    margin-bottom: 12px;
}

.auth-register-bg .auth-form {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 8px;
}

.reporter-reset-bg {
    position: relative;
    color: #0b1220;
}

.reporter-reset-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 10%, rgba(239, 68, 68, 0.35) 0, transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(251, 191, 36, 0.22) 0, transparent 32%),
        radial-gradient(circle at 82% 82%, rgba(15, 23, 42, 0.26) 0, transparent 36%);
}

.reporter-reset-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid #fca5a5;
    background: linear-gradient(180deg, #fffaf9 0%, #ffffff 56%, #fff4f2 100%);
    box-shadow: 0 28px 56px rgba(2, 6, 23, 0.34), 0 8px 18px rgba(185, 28, 28, 0.15);
    animation: reporter-reset-rise 420ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.reporter-reset-shell {
    max-width: 1040px;
    min-height: 640px;
    grid-template-columns: minmax(360px, 1.08fr) minmax(320px, 0.92fr);
}

.reporter-reset-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 10px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #dc2626 100%);
}

.reporter-reset-card .auth-left {
    position: relative;
    padding: 38px 34px 30px;
    font-family: "Franklin Gothic Medium", "Arial Narrow", "Trebuchet MS", sans-serif;
}

.reporter-reset-right {
    background: linear-gradient(158deg, #7f1d1d 0%, #991b1b 42%, #be123c 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.reporter-reset-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.18) 0, transparent 34%),
        radial-gradient(circle at 76% 70%, rgba(255, 255, 255, 0.12) 0, transparent 32%);
}

.reporter-reset-right .brand-block {
    max-width: 324px;
}

.reporter-reset-right .brand-logo-wrap {
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.45);
}

.reporter-reset-right .brand-block p {
    font-size: 1.02rem;
}

.reporter-reset-right .brand-block ul {
    gap: 10px;
    font-size: 0.98rem;
}

.reporter-reset-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
    border: 1px solid #fb7185;
    color: #9f1239;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.14);
}

.reporter-reset-card .auth-header h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 2.6vw, 2.65rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #111827;
}

.reporter-reset-card .auth-header p {
    margin-bottom: 20px;
    color: #334155;
    font-size: 1.04rem;
}

.reporter-reset-help {
    margin: 0 0 18px;
    border: 1px dashed #f87171;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
    padding: 12px 13px;
    font-size: 13px;
    color: #7f1d1d;
    font-weight: 700;
}

.reporter-reset-card .auth-banner {
    border-color: #fb7185;
    background: #ffe4e6;
    color: #881337;
    font-weight: 700;
}

.reporter-reset-card .auth-form {
    gap: 13px;
}

.reporter-reset-card .auth-form label {
    color: #1f2937;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.reporter-reset-card .input-group input {
    border-width: 1px;
    border-color: #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    min-height: 50px;
    font-size: 15px;
    color: #0f172a;
}

.reporter-reset-card .input-group input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.reporter-reset-card .auth-btn {
    min-height: 50px;
    border-radius: 14px;
    letter-spacing: 0.02em;
    background: linear-gradient(92deg, #ef4444 0%, #f97316 54%, #dc2626 100%);
    box-shadow: 0 16px 30px rgba(185, 28, 28, 0.32);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.reporter-reset-card .auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(185, 28, 28, 0.38);
    filter: saturate(1.06);
}

.reporter-reset-card .auth-footer {
    margin-top: 20px;
}

.reporter-reset-card .auth-footer a {
    color: #be123c;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.reporter-reset-card .form-help {
    margin-top: -2px;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #b91c1c;
}

.reporter-reset-card .reporter-reset-chip,
.reporter-reset-card .auth-header,
.reporter-reset-card .reporter-reset-help,
.reporter-reset-card .auth-form,
.reporter-reset-card .auth-footer {
    animation: reporter-reset-fade 320ms ease both;
}

.reporter-reset-card .auth-header {
    animation-delay: 80ms;
}

.reporter-reset-card .reporter-reset-help {
    animation-delay: 120ms;
}

.reporter-reset-card .auth-form {
    animation-delay: 160ms;
}

.reporter-reset-card .auth-footer {
    animation-delay: 220ms;
}

@keyframes reporter-reset-rise {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes reporter-reset-fade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .reporter-reset-card .auth-left {
        padding: 26px 18px 20px;
    }

    .reporter-reset-chip {
        font-size: 11px;
    }

    .reporter-reset-card .auth-header h1 {
        font-size: 1.9rem;
    }

    .reporter-reset-help {
        font-size: 12px;
    }
}

@media (max-width: 860px) {
    .reporter-reset-shell {
        max-width: 540px;
        min-height: auto;
        grid-template-columns: 1fr;
    }
}

.auth-register-bg .auth-form::-webkit-scrollbar {
    width: 8px;
}

.auth-register-bg .auth-form::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.auth-register-bg .auth-form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.auth-register-bg .auth-form::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.auth-register-bg .auth-footer {
    margin-top: 12px;
    padding-top: 10px;
}

.logout-actions {
    display: grid;
    gap: 10px;
}

@media (max-width: 860px) {
    .auth-shell {
        max-width: 460px;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .auth-right {
        display: none;
    }

    .auth-left {
        padding: 32px 24px;
    }

    .auth-register-bg .auth-shell {
        max-height: none;
    }

    .auth-register-bg .auth-left {
        overflow: visible;
        padding: 24px;
    }

    .auth-register-bg .auth-form {
        max-height: 58vh;
    }
}
