@font-face {
    font-family: "Roboto Condensed";
    src: url("../fonts/RobotoCondensed.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

:root {
    --page-bg: #f4f5f7;
    --panel: #ffffff;
    --text: #202938;
    --muted: #667085;
    --border: #d9dee7;
    --border-soft: #eef1f5;
    --input-border: #cfd6e0;
    --accent: #9f1729;
    --accent-hover: #861324;
    --focus: rgba(159, 23, 41, .14);
    --font: "Roboto Condensed", "Arial Narrow", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--text);
    background: var(--page-bg);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font-family: var(--font);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(760px, 100%);
    min-height: 420px;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
    overflow: hidden;
}

.login-brand {
    padding: 28px;
    border-right: 1px solid var(--border-soft);
    background: #fafbfc;
    display: flex;
    flex-direction: column;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #202938;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .2px;
}

.brand-name {
    margin-top: 18px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.brand-desc {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.brand-line {
    width: 100%;
    height: 1px;
    margin: 24px 0;
    background: var(--border-soft);
}

.brand-note {
    color: #5f6b7a;
    font-size: 14px;
    font-weight: 400;
    max-width: 220px;
}

.brand-meta {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #7a8494;
    font-size: 12px;
    font-weight: 500;
}

.login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 44px;
}

.login-panel {
    width: 100%;
    max-width: 330px;
}

.form-heading {
    margin-bottom: 24px;
}

.form-heading h1 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.form-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.field {
    margin-bottom: 15px;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.input-wrap {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus);
}

.input-wrap input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

.input-wrap input::placeholder {
    color: #98a2b3;
    font-weight: 400;
}

.password-toggle {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 0 5px 8px;
}

.form-row {
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.login-button {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background .14s ease, transform .06s ease;
}

.login-button:hover {
    background: var(--accent-hover);
}

.login-button:active {
    transform: translateY(1px);
}

.toast-area {
    position: fixed;
    top: 18px;
    right: 18px;
    width: min(360px, calc(100vw - 36px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.app-toast {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 13px 15px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    transform: translateX(14px);
    opacity: 0;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}

.app-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.app-toast.hide {
    opacity: 0;
    transform: translateX(14px);
}

.toast-icon {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.toast-content {
    min-width: 0;
    flex: 1;
}

.toast-title {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.toast-message {
    margin-top: 2px;
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.toast-close {
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    transform-origin: left center;
    animation-name: toastProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.app-toast.error .toast-icon,
.app-toast.error .toast-progress {
    background: #b91c1c;
}

.app-toast.success .toast-icon,
.app-toast.success .toast-progress {
    background: #047857;
}

.app-toast.info .toast-icon,
.app-toast.info .toast-progress {
    background: #2563eb;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 720px) {
    .login-page {
        min-height: 100vh;
        padding: 12px;
        place-items: center;
    }

    .login-card {
        width: 100%;
        max-width: 420px;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .login-brand {
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
        display: grid;
        grid-template-columns: 38px 1fr;
        column-gap: 12px;
        align-items: center;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 4px;
        font-size: 15px;
        grid-row: 1 / span 2;
    }

    .brand-name {
        margin-top: 0;
        font-size: 21px;
        line-height: 1.05;
    }

    .brand-desc {
        margin-top: 2px;
        font-size: 13px;
        line-height: 1.2;
        white-space: normal;
    }

    .brand-line,
    .brand-note,
    .brand-meta {
        display: none;
    }

    .login-form-area {
        padding: 24px 20px 26px;
    }

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

    .form-heading {
        margin-bottom: 20px;
    }

    .form-heading h1 {
        font-size: 24px;
    }

    .form-heading p {
        font-size: 14px;
    }

    .field {
        margin-bottom: 14px;
    }

    .input-wrap {
        height: 44px;
    }

    .login-button {
        height: 44px;
    }

    .toast-area {
        top: 12px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}
