:root {
    --auth-primary: #2563EB;
    --auth-on-primary: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: "Inter", sans-serif;
    background: #fff;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
}

.auth-side {
    display: none;
    flex: 1;
    margin: 1rem;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--auth-primary) 0%, rgba(0, 0, 0, 0.35) 140%), var(--auth-primary);
}

.auth-side.has-image {
    background-size: cover;
    background-position: center;
}

.auth-side img {
    max-width: 70%;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.auth-box-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-box {
    width: 100%;
    max-width: 448px;
}

.auth-logo {
    height: 40px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.auth-title {
    font-size: 30px;
    line-height: 36px;
    font-weight: 800;
    margin: 0 0 .25rem;
}

.auth-title span {
    color: var(--auth-primary-text, var(--auth-primary));
}

.auth-subtitle {
    font-size: 14px;
    line-height: 20px;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 1rem;
    color: #991B1B;
    background: #FEF2F2;
}

.auth-alert .material-icons {
    font-size: 20px;
}

.auth-input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 .75rem;
    font-size: 14px;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-primary-text, var(--auth-primary));
}

.auth-input.top {
    border-radius: 6px 6px 0 0;
}

.auth-input.bottom {
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding-right: 2.5rem;
}

.auth-password {
    position: relative;
}

.auth-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
}

.auth-password + .auth-btn {
    margin-top: 1.25rem;
}

.auth-btn {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 9px 17px;
    font-size: 14px;
    font-weight: 700;
    color: var(--auth-on-primary) !important;
    text-align: center;
    text-decoration: none !important;
    background: var(--auth-primary);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.auth-btn:hover {
    filter: brightness(90%);
}

.auth-btn.outline {
    color: var(--auth-primary-text, var(--auth-primary)) !important;
    background: #fff;
    border: 1px solid var(--auth-primary-text, var(--auth-primary));
    box-shadow: none;
    margin-bottom: .5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray-400);
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

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