:root {
    --bg: #0b0b0b;
    --card: #141414;
    --field: #1c1c1c;
    --text: #f7f7f7;
    --muted: #9b9b9b;
    --line: #2a2a2a;
    --button: #f2f2f2;
    --button-text: #080808;
    --radius: 18px;
}

@font-face {
    font-family: "Yekan";
    src: url("Yekan.ttf") format("truetype");
    font-display: swap;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: "Yekan", sans-serif;
    background: var(--bg);
    color: var(--text);
}

button,
input,
a {
    font: inherit;
}

.auth-card {
    width: min(100%, 390px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-mark {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.brand-chip {
    color: var(--muted);
    font-size: 0.78rem;
}

.panel-header {
    margin-bottom: 22px;
}

.panel-header h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 600;
}

.panel-header p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.auth-form,
.field {
    display: flex;
    flex-direction: column;
}

.auth-form {
    gap: 16px;
}

.field {
    gap: 8px;
}

.field label {
    font-size: 0.86rem;
}

.field input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: var(--field);
    color: var(--text);
}

.field input::placeholder {
    color: #686868;
}

.field input:focus {
    border-color: #6a6a6a;
}

.field-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.submit-btn,
.ghost-btn {
    min-height: 52px;
    border-radius: 12px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    border: 0;
    background: var(--button);
    color: var(--button-text);
    font-weight: 600;
}

.ghost-btn {
    flex: 1;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
}

.submit-btn:disabled,
.submit-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
}

.message-box {
    min-height: 18px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.message-box:not(:empty) {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.auth-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 420px) {
    body {
        padding: 14px;
    }

    .auth-card {
        padding: 22px;
    }
}
