:root {
    --td-navy: #0d2745;
    --td-navy-dark: #071b31;
    --td-orange: #ff6b16;
    --td-orange-dark: #e95708;
    --td-orange-soft: #fff1e8;

    --page-background: #f3f6f9;
    --surface: #ffffff;
    --surface-muted: #f8fafc;

    --text-primary: #102a47;
    --text-secondary: #68788e;
    --text-light: #8b98a9;

    --border-color: #dce3ea;
    --error-background: #fff4f5;
    --error-border: #efc4c8;
    --error-text: #a12935;

    --shadow:
        0 18px 50px rgba(13, 39, 69, 0.12);

    --radius-small: 9px;
    --radius-medium: 14px;
    --radius-large: 20px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background:
        radial-gradient(circle at top left,
            rgba(255, 107, 22, 0.08),
            transparent 34%),
        linear-gradient(145deg,
            #f8fafc 0%,
            #edf2f7 100%);
    color: var(--text-primary);
    font-family: "Inter", sans-serif;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

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

.login-page {
    display: flex;
    min-height: 100vh;
    padding: 40px 20px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-panel {
    width: 100%;
    max-width: 460px;
    padding: 38px;
    background: var(--surface);
    border: 1px solid rgba(220, 227, 234, 0.9);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    margin-bottom: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.login-brand img {
    width: 185px;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}

.staff-label {
    padding: 6px 10px;
    color: var(--td-orange);
    background: var(--td-orange-soft);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-heading {
    margin-bottom: 27px;
}

.login-heading h1 {
    margin: 0;
    color: var(--td-navy);
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.login-heading p {
    margin: 9px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.login-alert {
    display: flex;
    margin-bottom: 22px;
    padding: 13px 14px;
    color: var(--error-text);
    background: var(--error-background);
    border: 1px solid var(--error-border);
    border-radius: var(--radius-small);
    font-size: 13px;
    gap: 10px;
    align-items: flex-start;
}

.login-alert svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--td-navy);
    font-size: 13px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper>svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 49px;
    padding: 0 45px;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.input-wrapper input::placeholder {
    color: #a1acba;
}

.input-wrapper input:focus {
    border-color: var(--td-orange);
    box-shadow:
        0 0 0 4px rgba(255, 107, 22, 0.10);
}

.password-toggle {
    position: absolute;
    right: 8px;
    display: flex;
    width: 36px;
    height: 36px;
    color: var(--text-light);
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--td-navy);
    background: var(--surface-muted);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.login-button {
    display: flex;
    width: 100%;
    height: 50px;
    margin-top: 3px;
    color: #ffffff;
    background: var(--td-orange);
    border-radius: var(--radius-small);
    font-weight: 700;
    cursor: pointer;
    gap: 8px;
    align-items: center;
    justify-content: center;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.login-button:hover {
    background: var(--td-orange-dark);
    transform: translateY(-1px);
}

.login-button svg {
    width: 18px;
    height: 18px;
}

.login-security {
    display: flex;
    margin-top: 27px;
    padding-top: 21px;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    gap: 9px;
    align-items: flex-start;
}

.login-security svg {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    color: var(--td-orange);
    flex-shrink: 0;
}

.login-security p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
}

.login-footer {
    display: flex;
    width: 100%;
    max-width: 460px;
    margin-top: 24px;
    padding: 0 4px;
    color: var(--text-light);
    font-size: 11px;
    align-items: center;
    justify-content: space-between;
}

.login-footer p {
    margin: 0;
}

@media (max-width: 540px) {
    .login-page {
        padding: 20px 14px;
    }

    .login-panel {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .login-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-brand img {
        width: 170px;
    }

    .login-heading h1 {
        font-size: 26px;
    }

    .login-footer {
        gap: 5px;
        flex-direction: column;
        text-align: center;
    }
}