* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.login-header p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.password-box {
    display: flex;
    gap: 8px;
}

.password-box input {
    flex: 1;
}

.toggle-btn {
    min-width: 90px;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.toggle-btn:hover {
    background: #cbd5e1;
}

.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-login:hover {
    background: #1d4ed8;
}

.btn-login:active {
    transform: scale(0.99);
}

.btn-login:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #64748b;
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 18px;
    }

    .login-header h1 {
        font-size: 1.35rem;
    }

    .password-box {
        flex-direction: column;
    }

    .toggle-btn {
        width: 100%;
    }
}