/* /home/phnx/web/salva.phnx.dev/public_html/css/login.css */

:root {
    --bg: #0f0f0f;
    --surface: #141414;
    --surface-2: #1c1c1c;
    --border: #2a2a2a;
    --text: #f4f4f4;
    --text-muted: #a8a8a8;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --danger: #d9534f;
    --shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at top, rgba(201, 168, 76, 0.07), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(201, 168, 76, 0.03), transparent 60%),
        var(--bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px 32px 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    opacity: 0.6;
}

.login-card h1 {
    margin: 0 0 6px 0;
    font-size: 1.75rem;
    color: var(--gold);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.login-card .subtitle {
    margin: 0 0 24px 0;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.alert {
    background-color: rgba(217, 83, 79, 0.12);
    border: 1px solid rgba(217, 83, 79, 0.4);
    color: #ffb5b3;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 7px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.field input {
    width: 100%;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.field input:focus {
    outline: none;
    border-color: var(--gold);
    background-color: #1f1f1f;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a1a1a;
    border: none;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.08s, box-shadow 0.15s, filter 0.15s;
    margin-top: 8px;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(201, 168, 76, 0.3); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #444; color: #888; cursor: not-allowed; }

/* Mobile tweaks */
@media (max-width: 480px) {
    .login-wrap { padding: 0; align-items: stretch; }
    .login-card {
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        border: none;
        padding: 56px 22px 28px 22px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .login-card h1 { font-size: 2rem; }
}