* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #29336c, #1e2553);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    animation: fadeIn .6s ease;
}

h1 {
    margin: 0;
    text-align: center;
    color: #29336c;
}

.slogan {
    text-align: center;
    font-size: 0.95em;
    color: #666;
    margin: 8px 0 24px;
}

label {
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 14px;
    display: block;
    color: #333;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 1em;
    transition: border .2s, box-shadow .2s;
}

input:focus {
    outline: none;
    border-color: #29336c;
    box-shadow: 0 0 0 2px rgba(41,51,108,.15);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: .6;
}

.toggle-password:hover {
    opacity: 1;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 0.85em;
}

button {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #29336c;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .2s;
}

button:hover {
    background: #1f265a;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(41,51,108,.35);
}

.links {
    text-align: center;
    margin-top: 18px;
}

.links a {
    font-size: 0.85em;
    color: #29336c;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.error {
    background: #ffe3e3;
    color: #a40000;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85em;
    margin-bottom: 14px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
