* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: #0a0c10;
    color: #e6e9ee;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 24px;
    padding-top: env(safe-area-inset-top, 24px);
    padding-bottom: env(safe-area-inset-bottom, 24px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo { font-size: 30px; }
.title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
}

.card {
    background: #131720;
    border: 1px solid #2a313e;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #8a92a0;
    text-transform: uppercase;
    letter-spacing: .5px;
}

input {
    font-family: inherit;
    font-size: 16px;
    color: #e6e9ee;
    background: #1b212b;
    border: 1px solid #2a313e;
    border-radius: 8px;
    padding: 12px 14px;
    width: 100%;
    -webkit-appearance: none;
}
input:focus {
    outline: none;
    border-color: #22d3ee;
}

.submit {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 4px;
    cursor: pointer;
    min-height: 48px;
    -webkit-appearance: none;
}
.submit:hover { background: #2563eb; }
.submit:active { transform: scale(.98); }
.submit:disabled { opacity: .5; cursor: not-allowed; }

.err {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    min-height: 1.4em;
}

.hint {
    color: #5a6270;
    font-size: 12px;
}
