@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

:root {
    --secondary: #5f5e5e;
    --on-secondary: #ffffff;
    --surface-container-low: #f3f3f3;
    --surface-container: #eeeeee;
    --surface-container-high: #e8e8e8;
    --on-surface: #1a1c1c;
    --on-surface-variant: #59413e;
    --primary: #7a0009;
    --background: #f9f9f9;
    --border-light: #e4e4e7;
}

* {
    box-sizing: border-box;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined", serif;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    line-height: 1;
}

.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--on-surface);
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image:
        linear-gradient(rgb(26 28 28 / 70%), rgb(26 28 28 / 70%)),
        url("https://lh3.googleusercontent.com/aida-public/AB6AXuCBzcxCpqqp0H30JlpUPmvDgRxefnWX5i7c8fdqf_bGWcoU_K2s9FO9hwrz197wXcZGgjKPstmFArnA5aPa80a6yxJfxFBw4uD_85lPVWEP95-TCzbTTNOV7qZNI5-0pJmTo2NF_jcVjXFiFJBuf7UdfLE-qxmwwEBZp4PvO62hwQXoc3i_MExZznecgcN7QeyHgelzo6KuQHYYclOwSvrc15uKIZJUy2FprliUQEMe_0yeS5Xqh0d5XGzqi--zXELL_Ss6N9N-e_E");
    background-size: cover;
    background-position: center;
}

.login-panel {
    width: 100%;
    max-width: 448px;
    border: 1px solid var(--border-light);
    background: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    overflow: hidden;
}

.login-branding {
    text-align: center;
    padding: 32px 32px 24px;
}

.login-brand-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--primary);
}

.login-brand-icon {
    font-size: 36px;
}

.login-title {
    margin: 0 0 4px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
}

.login-subtitle {
    margin: 0;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.login-form {
    padding: 0 32px 32px;
    display: grid;
    gap: 24px;
}

.login-error {
    border: 1px solid #f3b6bd;
    background: #ffe7ea;
    color: #9d1023;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding: 10px 12px;
}

.login-field-group {
    display: grid;
    gap: 4px;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-label {
    color: var(--on-surface);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.login-forgot {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.01em;
    text-decoration: none;
    font-weight: 500;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 22px;
}

.login-input {
    width: 100%;
    height: 48px;
    border: 2px solid var(--border-light);
    background: var(--surface-container-low);
    padding: 0 16px 0 48px;
    color: var(--on-surface);
    font-size: 16px;
    line-height: 24px;
    outline: none;
    transition: border-color 160ms ease;
}

.login-input:focus {
    border-color: #3a3a3a;
}

.login-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.login-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d4d4d8;
    accent-color: var(--primary);
}

.login-check-label {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    cursor: pointer;
}

.login-button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: var(--primary);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 140ms ease, background-color 140ms ease;
}

.login-button:hover {
    background: #600009;
}

.login-button:active {
    opacity: 0.8;
}

.login-button-icon {
    font-size: 20px;
}

.login-help-footer {
    background: var(--surface-container-low);
    border-top: 1px solid var(--border-light);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.login-help-text {
    margin: 0;
    text-align: center;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.login-help-links {
    display: flex;
    gap: 24px;
}

.login-help-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.login-help-link:hover {
    color: var(--primary);
}

.login-help-icon {
    font-size: 16px;
}

.login-statusbar {
    background: #09090b;
    color: rgb(255 255 255 / 60%);
    padding: 16px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-statusbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.login-status-dot-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 8px rgb(16 185 129 / 60%);
}

.login-status-text-ok {
    color: #10b981;
}

.login-status-text-ok,
.login-status-db,
.login-status-copy {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.login-divider {
    width: 1px;
    height: 16px;
    background: rgb(255 255 255 / 20%);
}

.login-status-db {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-status-db-icon {
    font-size: 16px;
}

@media (max-width: 720px) {
    .login-title {
        font-size: 28px;
        line-height: 36px;
    }

    .login-statusbar {
        padding: 16px 20px;
    }

    .login-divider {
        display: none;
    }
}
