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

:root {
    color-scheme: dark;
    --page-bg: #1d1d1d;
    --card-bg: rgba(22, 22, 22, 0.60);
    --line: #252525;
    --text: #f4f4f4;
    --muted: #d2d2d2;
    --field: #1a1a19;
    --field-border: #2c2c2b;
    --accent: #fbbf24;
    --green: #3cb882;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

.login-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: #1d1d1d;
    background-image: url("../img/background.svg");
    background-position: center;
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed;
}

.login-shell {
    width: min(448px, calc(100vw - 32px));
    transform: translateY(-4px);
}

.brand {
    margin: 0 0 31px;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.7px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.brand-stay { color: #fff; }
.brand-tek { color: var(--accent); }

.login-card {
    border-radius: 11px;
    background: var(--card-bg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .25), 0 4px 6px -4px rgba(0, 0, 0, .25);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.card-header {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 0 23px;
    border-bottom: 1px solid var(--line);
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.25px;
}

.login-mark {
    width: 17px;
    height: 17px;
    margin-right: 11px;
    stroke: var(--accent);
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

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

.login-form label {
    display: block;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.input-wrap {
    position: relative;
    margin-bottom: 21px;
}

.input-wrap svg {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: #747474;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.input-wrap input {
    display: block;
    width: 100%;
    height: 35px;
    padding: 0 13px 0 33px;
    border: 1px solid var(--field-border);
    border-radius: 13px;
    outline: none;
    background: var(--field);
    color: #eee;
    font-size: 14px;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.input-wrap input::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.input-wrap input:focus {
    border-color: #8c8c8c;
    box-shadow: 0 0 0 1px #8c8c8c;
}

.login-form button {
    display: block;
    width: 100%;
    height: 33px;
    margin-top: 26px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: transparent;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease, transform 80ms ease;
}

.login-form button:hover,
.login-form button:focus-visible {
    background: var(--accent);
    color: #151515;
    outline: none;
}

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

.form-message {
    margin: -7px 0 19px;
    padding: 9px 11px;
    border: 1px solid rgba(214, 80, 80, 0.4);
    border-radius: 6px;
    background: rgba(126, 33, 33, 0.14);
    color: #e7a4a4;
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .login-shell {
        transform: none;
    }

    .brand {
        margin-bottom: 24px;
        font-size: 31px;
    }

    .circle-one { width: 42%; left: -10%; top: 8%; }
    .circle-two { width: 58%; left: -25%; bottom: -8%; }
    .circle-three { width: 28%; left: 56%; top: -2%; }
    .circle-four { width: 34%; left: 71%; top: 20%; }
    .circle-five { width: 72%; left: 55%; top: 55%; }
    .circle-six { width: 42%; right: -17%; bottom: -8%; }
}

@media (max-height: 560px) {
    .login-page {
        padding: 28px 0;
        place-items: start center;
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
