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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a0408 0%, #6B0615 40%, #C8102E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.logo-fallback {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -1px;
}

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.login-sub {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

.field {
    margin-bottom: 20px;
}

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

.field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #111827;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.field input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
    background: #fff;
}

.input-eye {
    position: relative;
}

.input-eye input {
    padding-right: 44px;
}

.input-eye button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 2px;
    display: flex;
    align-items: center;
}

.input-eye button:hover { color: #374151; }

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

.btn-login {
    width: 100%;
    padding: 12px;
    background: #C8102E;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 8px;
}

.btn-login:hover { background: #A00D24; }
.btn-login:active { transform: scale(.99); }
.btn-login:disabled { background: #9ca3af; cursor: not-allowed; }

.login-footer {
    text-align: center;
    font-size: 11px;
    color: #d1d5db;
    margin-top: 24px;
}

@media (max-width: 480px) {
    .login-card { padding: 36px 24px 28px; }
}
