/* LINK_Fit Admin — Dark Theme (matches linkfit Flutter app) */

/* ─── Color Palette ─────────────────────────────────── */
:root {
    --bg:            #0D1117;
    --surface:       #161B22;
    --surface-up:    #21262D;
    --text-primary:  #F0F6FC;
    --text-secondary:#8B949E;
    --text-muted:    #6E7681;
    --accent:        #58A6FF;
    --accent-2:      #79C0FF;
    --error:         #F85149;
    --border:        #30363D;
    --border-subtle: #21262D;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Card ───────────────────────────────────────────── */
.login-wrapper {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ─── Logo ───────────────────────────────────────────── */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
}

.logo-icon {
    width: 68px;
    height: 68px;
    background-color: color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 14px;
}

.logo-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ─── Error Box ──────────────────────────────────────── */
.error-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: color-mix(in srgb, var(--error) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--error) 50%, transparent);
    color: var(--error);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 20px;
}

.error-box svg { flex-shrink: 0; }

/* ─── Form ───────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    background-color: var(--surface-up);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    padding: 12px 14px 12px 42px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.input-wrap input::placeholder {
    color: var(--text-muted);
}

.input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.field-hint {
    font-size: 11px;
    color: var(--text-muted);
    padding-left: 2px;
}

/* ─── Button ─────────────────────────────────────────── */
.btn-login {
    margin-top: 8px;
    width: 100%;
    padding: 13px;
    background-color: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background-color 0.18s, opacity 0.18s;
}

.btn-login:hover  { background-color: var(--accent-2); }
.btn-login:active { opacity: 0.85; }

/* ─── Footer ─────────────────────────────────────────── */
.footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 28px;
}
