/* assets/style.css */
/* Shared entry/auth UI theme */

:root {
    --navy: #0A1A4F;
    --navy-2: #07133b;
    --gold: #F5C542;
    --orange: #E67E22;
    --bg: #F6F7FB;
    --card: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --border: rgba(15, 23, 42, 0.12);
    --soft: rgba(10, 26, 79, 0.06);
    --shadow: 0 18px 50px rgba(2, 6, 23, 0.16);
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html,
body {
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 18px;
    background:
        radial-gradient(900px 520px at 12% 12%, rgba(245, 197, 66, 0.11), transparent 58%),
        radial-gradient(820px 520px at 88% 14%, rgba(230, 126, 34, 0.10), transparent 58%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    width: 100%;
    max-width: 1060px;
    height: 560px;
    min-height: 560px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
    overflow: hidden;
}

.left-panel {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #FFFFFF;
    padding: 42px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    height: 100%;
    min-height: 0;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--navy);
    font-weight: 900;
    margin-bottom: 18px;
}

.entry-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(245, 197, 66, 0.12);
    border: 1px solid rgba(245, 197, 66, 0.32);
    color: #FFE9A3;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
}

.left-panel h1 {
    font-size: 30px;
    line-height: 1.08;
    margin: 0 0 16px;
    color: #FFFFFF;
    letter-spacing: 0;
}

.left-panel p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
}

.entry-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.entry-list div {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.right-panel {
    padding: 42px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    min-height: 0;
}

.form-title {
    font-size: 24px;
    line-height: 1.15;
    margin: 0 0 10px;
    color: var(--navy);
}

.form-subtitle {
    font-size: 14px;
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.55;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #FFFFFF;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(230, 126, 34, 0.55);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.10);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--navy);
    box-shadow: 0 12px 24px rgba(230, 126, 34, 0.18);
}

.btn-primary:hover {
    color: var(--navy);
    filter: brightness(0.98);
}

.btn-outline {
    background: rgba(10, 26, 79, 0.04);
    color: var(--navy);
    border-color: rgba(10, 26, 79, 0.18);
}

.btn-outline:hover {
    background: rgba(10, 26, 79, 0.08);
}

.left-panel .btn-outline {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 197, 66, 0.36);
}

.left-panel .btn-outline:hover {
    background: rgba(245, 197, 66, 0.12);
}

.auth-back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.auth-back-link:hover {
    color: var(--orange);
    text-decoration: none;
}

.auth-entry-page .left-panel {
    justify-content: flex-start;
}

.auth-entry-page .left-panel .auth-back-link {
    color: #FFE9A3;
    margin: auto 0 0;
}

.auth-entry-page .left-panel .auth-back-link:hover {
    color: var(--gold);
}

.auth-entry-page .left-copy {
    margin-top: 0;
}

.auth-entry-page .left-copy .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.auth-entry-page .left-copy .entry-kicker {
    margin-bottom: 14px;
}

.auth-entry-page .left-copy h1 {
    margin-bottom: 16px;
}

.compact-entry-list {
    gap: 8px;
    margin-top: 18px;
}

.compact-entry-list div {
    padding: 9px 11px;
}

.button-row,
.panel-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button-row .btn,
.panel-actions .btn {
    flex: 1 1 170px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.role-card {
    display: block;
    padding: 16px;
    min-height: 126px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #FFFFFF;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.role-card:hover {
    border-color: rgba(230, 126, 34, 0.42);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.role-card strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    margin-bottom: 8px;
}

.role-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.role-card.primary {
    background: rgba(245, 197, 66, 0.12);
    border-color: rgba(230, 126, 34, 0.28);
}

.welcome-panel {
    max-width: 480px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    background: rgba(10, 26, 79, 0.035);
}

.welcome-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.entry-home-page .right-panel {
    justify-content: center;
}

.entry-home-page .form-subtitle {
    max-width: 520px;
}

.entry-home-page .welcome-panel {
    margin-top: 4px;
}

.entry-home-page .welcome-panel .button-row {
    margin-top: 0;
}

.form-footer {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

.form-footer a,
.text-link {
    color: var(--orange);
    font-weight: 800;
    text-decoration: none;
}

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

.auth-account-switch {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 30px;
    margin-top: 0;
}

.register-page {
    min-height: 100vh;
}

.register-page .main-container {
    max-width: 1060px;
    height: 560px;
    min-height: 560px;
}

.register-page .left-panel,
.register-page .right-panel {
    padding: 42px 34px;
}

.register-page .left-panel h1 {
    font-size: 30px;
    margin-bottom: 16px;
}

.register-page .left-panel p {
    line-height: 1.65;
}

.register-page .form-title {
    font-size: 23px;
    margin-bottom: 6px;
}

.register-page .form-subtitle {
    margin-bottom: 14px;
    line-height: 1.4;
}

.compact-register-form {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
}

.compact-register-form .form-group {
    margin-bottom: 0;
}

.compact-register-form .form-group:nth-of-type(3),
.compact-register-form .btn {
    grid-column: auto;
}

.compact-register-form label {
    margin-bottom: 5px;
}

.compact-register-form input[type="text"],
.compact-register-form input[type="email"],
.compact-register-form input[type="password"],
.compact-register-form input[type="tel"] {
    padding: 10px 12px;
    border-radius: 9px;
}

.register-page .btn {
    min-height: 40px;
    margin-top: 2px;
}

.register-page .form-footer:not(.auth-account-switch) {
    margin-top: 12px;
}

.status-list {
    margin: 0 0 14px 18px;
    color: #B91C1C;
    font-size: 13px;
    line-height: 1.5;
}

.small {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 820px) {
    body {
        align-items: flex-start;
        padding: 16px 10px;
    }

    .main-container {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .left-panel,
    .right-panel {
        padding: 28px 22px;
    }

    .left-panel h1 {
        font-size: 25px;
    }

    .role-grid {
        grid-template-columns: 1fr;
    }

    .welcome-panel {
        max-width: none;
    }

    .register-page {
        align-items: flex-start;
        padding: 10px;
    }

    .register-page .main-container {
        height: auto;
        min-height: 0;
    }

    .register-page .left-panel,
    .register-page .right-panel {
        padding: 20px 18px;
    }

    .compact-register-form {
        grid-template-columns: 1fr;
    }

    .compact-register-form .form-group:nth-of-type(3),
    .compact-register-form .btn {
        grid-column: auto;
    }
}
