:root {
    --portal-auth-ink: #121826;
    --portal-auth-muted: #5c677d;
    --portal-auth-line: #dfe6f2;
    --portal-auth-accent: #5D56EA;
    --portal-auth-accent-2: #746ef0;
    --portal-auth-bg: #f3f6ff;
    --portal-auth-card: #ffffff;
    --portal-auth-success-bg: #ecfdf3;
    --portal-auth-success-bd: #b7f0cd;
    --portal-auth-success-fg: #067647;
    --portal-auth-danger-bg: #fef3f2;
    --portal-auth-danger-bd: #fecdca;
    --portal-auth-danger-fg: #b42318;
}

* {
    box-sizing: border-box;
}

.portal-auth-body {
    margin: 0;
    min-height: 100vh;
    color: var(--portal-auth-ink);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.425), transparent 36%),
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.363), transparent 34%),
        url("../assets/images/home/sample.jpg") center center / cover no-repeat;
}

.portal-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-auth-header {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.portal-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--portal-auth-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.portal-auth-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50px;
    background: var(--portal-auth-accent);
    border: 1px solid rgba(93, 86, 234, 0.18);
    box-shadow: 0 8px 16px rgba(93, 86, 234, 0.16);
    padding: 3px;
}

.portal-auth-role-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(223, 230, 242, 0.95);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.portal-auth-role-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.portal-auth-role-link:hover {
    color: var(--portal-auth-accent);
    background: rgba(93, 86, 234, 0.06);
    border-color: rgba(93, 86, 234, 0.14);
}

.portal-auth-role-link.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--portal-auth-accent) 0%, var(--portal-auth-accent-2) 100%);
    box-shadow: 0 8px 18px rgba(93, 86, 234, 0.22);
}

.portal-auth-main {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 20px 28px;
}

.portal-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: 20px;
    align-items: stretch;
}

.portal-auth-layout--report {
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
}

.portal-auth-hero,
.portal-auth-panel {
    border-radius: 22px;
    border: 1px solid rgba(223, 230, 242, 0.9);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.06);
}

.portal-auth-hero {
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 18% 18%, rgba(93, 86, 234, 0.10), transparent 36%),
        radial-gradient(circle at 84% 20%, rgba(116, 110, 240, 0.11), transparent 34%),
        rgba(255, 255, 255, 0.96);
}

.portal-auth-layout--report .portal-auth-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
}

.portal-auth-layout--report .portal-auth-hero-image-wrap {
    min-height: 190px;
}

.portal-auth-layout--report .portal-auth-hero-image {
    max-width: 220px;
}

.portal-auth-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #dbe6ff;
    background: #eff4ff;
    color: var(--portal-auth-accent);
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.portal-auth-hero-copy h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 700;
    color: #111827;
}

.portal-auth-hero-copy p {
    margin: 14px 0 0;
    color: var(--portal-auth-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 520px;
}

.portal-auth-hero-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-auth-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
}

.portal-auth-hero-tags i {
    color: var(--portal-auth-accent);
}

.portal-auth-store-badges {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.portal-auth-store-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.portal-auth-store-link:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.portal-auth-store-img {
    display: block;
    height: 32px;
    width: auto;
}

.portal-auth-hero-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.portal-auth-hero-image-bg {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 86, 234, 0.14) 0%, rgba(116, 110, 240, 0.06) 55%, rgba(255,255,255,0) 72%);
}

.portal-auth-hero-image {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(17, 24, 39, 0.14));
}

.portal-auth-panel {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.portal-auth-panel-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 999px;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    background: #f1f5f9;
}

.portal-auth-panel-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.portal-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--portal-auth-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.portal-auth-back-link:hover {
    color: var(--portal-auth-accent);
}

.portal-auth-panel-header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.portal-auth-panel-header p {
    margin: 6px 0 0;
    color: var(--portal-auth-muted);
    font-size: 14px;
    line-height: 1.5;
}

.portal-auth-alert {
    margin-top: 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 11px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.portal-auth-alert > div + div {
    margin-top: 4px;
}

.portal-auth-alert.is-success {
    background: var(--portal-auth-success-bg);
    border-color: var(--portal-auth-success-bd);
    color: var(--portal-auth-success-fg);
}

.portal-auth-alert.is-danger {
    background: var(--portal-auth-danger-bg);
    border-color: var(--portal-auth-danger-bd);
    color: var(--portal-auth-danger-fg);
}

.portal-auth-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.portal-auth-form--report {
    gap: 0;
}

.portal-auth-report-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.portal-auth-report-form-col {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
}

.portal-auth-report-form-col .portal-auth-field {
    min-width: 0;
}

.portal-auth-panel--report .portal-auth-links {
    margin-top: 12px;
}

.portal-auth-submit--report {
    margin-top: 14px;
}

.portal-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.portal-auth-input {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #d8e1ee;
    background: #ffffff;
    color: #111827;
    padding: 0 14px;
    font-size: 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.portal-auth-input::placeholder {
    color: #98a2b3;
}

.portal-auth-input:focus {
    outline: none;
    border-color: rgba(93, 86, 234, 0.55);
    box-shadow: 0 0 0 4px rgba(93, 86, 234, 0.10);
}

.portal-auth-note {
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e40af;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.portal-auth-note p {
    margin: 4px 0 0;
}

.portal-auth-mandatory-note {
    margin-top: 12px;
    color: var(--portal-auth-muted);
    font-size: 12px;
    font-weight: 600;
}

.portal-auth-textarea {
    min-height: 96px;
    height: auto;
    padding: 10px 14px;
    resize: vertical;
}

.portal-auth-captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-auth-captcha-box {
    flex: 1 1 auto;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #d8e1ee;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 4px 10px;
    overflow: hidden;
}

.portal-auth-captcha-box span {
    display: inline-flex;
    align-items: center;
}

.portal-auth-captcha-box img {
    display: block;
    height: 36px;
    width: auto;
}

.portal-auth-captcha-refresh {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(93, 86, 234, 0.18);
    background: rgba(93, 86, 234, 0.08);
    color: var(--portal-auth-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.portal-auth-captcha-refresh:hover {
    background: rgba(93, 86, 234, 0.12);
    border-color: rgba(93, 86, 234, 0.28);
    transform: translateY(-1px);
}

.portal-auth-form .error {
    margin-top: 6px;
    color: var(--portal-auth-danger-fg);
    font-size: 12px;
    line-height: 1.35;
}

.errorTxt {
    margin-top: 10px;
}

.errorTxt .error {
    color: var(--portal-auth-danger-fg);
    font-size: 12px;
    line-height: 1.35;
}

.portal-auth-submit {
    border: 0;
    height: 46px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--portal-auth-accent) 0%, var(--portal-auth-accent-2) 100%);
    box-shadow: 0 14px 28px rgba(93, 86, 234, 0.18);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.portal-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(93, 86, 234, 0.22);
}

.portal-auth-links {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-auth-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #344054;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.portal-auth-links a:hover {
    color: var(--portal-auth-accent);
    border-color: #bfd4ff;
    background: #eff6ff;
}

.portal-auth-footnote {
    margin-top: auto;
    padding-top: 16px;
    font-size: 12px;
    color: var(--portal-auth-muted);
}

.portal-auth-footnote a {
    color: var(--portal-auth-muted);
    text-decoration: none;
}

.portal-auth-footnote a:hover {
    color: var(--portal-auth-accent);
}

@media (max-width: 1080px) {
    .portal-auth-layout {
        grid-template-columns: 1fr;
    }

    .portal-auth-layout--report {
        grid-template-columns: 1fr;
    }

    .portal-auth-hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .portal-auth-hero-copy h1 {
        font-size: 30px;
    }

    .portal-auth-hero-image-wrap {
        min-height: 240px;
    }

    .portal-auth-hero-image {
        max-width: 240px;
    }

    .portal-auth-report-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .portal-auth-header,
    .portal-auth-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .portal-auth-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .portal-auth-role-nav {
        width: 100%;
        justify-content: stretch;
    }

    .portal-auth-role-link {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .portal-auth-hero,
    .portal-auth-panel {
        border-radius: 16px;
    }

    .portal-auth-hero,
    .portal-auth-panel {
        padding: 16px;
    }

    .portal-auth-hero-copy h1 {
        font-size: 24px;
    }

    .portal-auth-hero-tags span {
        width: 100%;
        justify-content: flex-start;
    }

    .portal-auth-store-img {
        height: 42px;
    }

    .portal-auth-links a {
        flex: 1 1 auto;
    }

    .portal-auth-layout--report .portal-auth-hero {
        padding: 16px;
    }

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

    .portal-auth-report-form-col {
        gap: 12px;
    }

    .portal-auth-captcha-row {
        align-items: stretch;
    }

    .portal-auth-captcha-refresh {
        width: 42px;
        min-width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .portal-auth-captcha-box {
        min-height: 42px;
        border-radius: 10px;
    }

    .portal-auth-captcha-box img {
        height: 32px;
    }
}
