:root {
    --primary-color: #0078d4;
    --bg-color: #f0f4f7;
    --accent-gold: #FFB258;
    --error: #ff4d4d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-color);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

.brand-container {
    margin-bottom: 30px;
}

.brand-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #444 0%, #111 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Replaces inline style on the 'N' */
.brand-n {
    -webkit-text-fill-color: #888; 
    font-weight: 300;
}

.brand-container::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

.login-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    width: 88%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.input-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#char-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ccc;
}

#char-count.at-limit {
    color: var(--accent-gold);
}

input {
    width: 100%;
    background: #f9f9f9;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
}

input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1);
}

button {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.2);
}

button:active {
    transform: scale(0.96);
    background: #005a9e;
}

button:disabled {
    opacity: 0.6;
    filter: grayscale(0.5);
}

#msg {
    height: 20px;
    font-size: 0.85rem;
    margin-top: 15px;
    font-weight: 600;
    color: var(--error);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.shake {
    animation: shake 0.3s ease-in-out;
    border-color: var(--error) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-height: 600px) {
    .login-card { padding: 20px; }
    .brand-container { margin-bottom: 15px; }
}