: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: #0c0c0c;
    --radius-sm: 10px;
    --radius-md: 20px;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.1);
    --font-sans: "Montserrat", sans-serif;
    --font-alt: "DM Sans", 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: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;
}

.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;
}

.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);
    }
}
