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

body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.brand-icon {
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 16px; /* 16px prevents iOS zoom on focus */
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

input:focus {
    border-color: #467fcf;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.error-msg {
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #467fcf;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.btn-login:hover  { background: #467fcf; }
.btn-login:active { background: #467fcf; }

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
        border-radius: 10px;
    }

    h1 { font-size: 20px; }
    .subtitle { font-size: 13px; }
    .brand { margin-bottom: 24px; }
}
