:root {
    --color-primary: #001e50;
    --color-success: #008651;
    --color-accent: #8dc63f;
    --color-bg: #f6f6f6;
    --color-surface: #ffffff;
    --color-border: rgba(17, 17, 19, 0.2);
    --color-text: #232323;
    --radius-sm: 10px;
    --radius-md: 20px;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.1);
    --font-sans: "Poppins", "Century Gothic", sans-serif;
    --font-alt: "Poppins", "Century Gothic", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #ffffff;
    min-height: 100vh;
}

h1,
h2,
h3,
p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding-left: 1.25rem;
}

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

.auth-side {
    background: #ffffff;
    color: var(--color-text);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.brand-logo {
    width: 170px;
    height: auto;
}

.auth-title {
    font-size: 1.9rem;
    line-height: 1.15;
    max-width: 28rem;
}

.auth-subtitle {
    font-family: var(--font-alt);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(12, 12, 12, 0.7);
    max-width: 30rem;
}

.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.5rem 3rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 2.5rem 2.25rem;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: rgba(12, 12, 12, 0.75);
    margin-bottom: 2rem;
}

.alert {
    background: rgba(217, 45, 32, 0.08);
    color: #9c1c13;
    border: 1px solid rgba(217, 45, 32, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.input {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: 0 0.9rem;
    font-size: 1rem;
    font-family: var(--font-alt);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.input-with-action {
    position: relative;
}

.input-with-action .input {
    padding-right: 3.1rem;
}

.input-action {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(15, 23, 42, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.input-action:hover {
    background: rgba(0, 30, 80, 0.08);
    color: rgba(15, 23, 42, 0.88);
}

.input-action:focus-visible {
    outline: 3px solid rgba(11, 36, 71, 0.16);
    outline-offset: 2px;
}

.input-action svg {
    width: 18px;
    height: 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input:focus-visible {
    outline: 3px solid rgba(0, 30, 80, 0.2);
    border-color: var(--color-primary);
}

.input.is-invalid {
    border-color: rgba(217, 45, 32, 0.7);
}

.help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(12, 12, 12, 0.6);
}

.error {
    color: #9c1c13;
}

.recaptcha-wrap {
    overflow-x: auto;
}

.recaptcha-panel {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    padding: 0.9rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.recaptcha-panel__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.recaptcha-panel__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #001e50;
}

.recaptcha-panel__hint {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.68);
}

.recaptcha-feedback {
    display: none;
    margin-top: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.recaptcha-feedback.is-visible {
    display: block;
}

.recaptcha-feedback.is-error {
    color: #9c1c13;
    background: rgba(217, 45, 32, 0.08);
    border-color: rgba(217, 45, 32, 0.22);
}

.recaptcha-feedback.is-warning {
    color: #8a4b00;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
}

.recaptcha-feedback.is-success {
    color: #0b6b46;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.22);
}

.btn {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
    outline: 3px solid rgba(0, 134, 81, 0.25);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-success);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 134, 81, 0.25);
}

.btn-primary:hover {
    background: #007046;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: rgba(0, 30, 80, 0.4);
}

.btn-outline:hover {
    background: rgba(0, 30, 80, 0.08);
}

.btn.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
    box-shadow: none;
}

.btn.is-blocked:disabled {
    cursor: not-allowed;
    opacity: 0.82;
}

.footer-note {
    margin-top: 1.75rem;
    font-size: 0.85rem;
    color: rgba(12, 12, 12, 0.6);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 992px) {
    .auth {
        flex-direction: row;
    }

    .auth-side {
        width: 45%;
        padding: 4rem 4.5rem;
        justify-content: center;
    }

    .auth-main {
        width: 55%;
        padding: 4rem 4.5rem;
        background: var(--color-bg);
    }
}

/* Enterprise Refresh */
:root {
    --color-primary: #001E50;
    --color-success: #008651;
    --color-accent: #8DC63F;
    --color-bg: #f3f6fb;
    --color-surface: #ffffff;
    --color-border: rgba(15, 23, 42, 0.16);
    --color-text: #232323;
    --radius-sm: 12px;
    --radius-md: 20px;
}

body {
    background:
        radial-gradient(circle at 80% 10%, rgba(11, 36, 71, 0.08), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.08), transparent 40%),
        #f4f7fb;
}

.auth-side {
    background: linear-gradient(155deg, #001E50 0%, #003B8E 55%, #008651 100%);
    color: #fff;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.auth-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.card-title {
    color: #001E50;
    letter-spacing: -0.01em;
}

.input {
    border: 1px solid rgba(148, 163, 184, 0.38);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.input:focus-visible {
    outline: 3px solid rgba(11, 36, 71, 0.16);
    border-color: #001E50;
}

.btn {
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(180deg, #008651 0%, #007248 100%);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #007248 0%, #005F3C 100%);
}

.brand-mark {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    padding: 0.7rem 0.95rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.brand-logo {
    width: 192px;
    display: block;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.auth-title {
    font-size: clamp(1.85rem, 2.4vw, 2.35rem);
    line-height: 1.12;
    max-width: 24rem;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 24rem;
}

@media (max-width: 991px) {
    .auth-side {
        gap: 1rem;
        padding: 2rem 1.25rem 1.5rem;
    }

    .brand-mark {
        padding: 0.55rem 0.75rem;
        border-radius: 14px;
    }

    .brand-logo {
        width: 168px;
    }

    .auth-title,
    .auth-subtitle {
        max-width: 100%;
    }
}
