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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
    background: #f1f3f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 16px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    padding: 32px 28px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.logo {
    margin-bottom: 20px;
}

.logo img { width: 96px; height: auto; }

h1 {
    color: #111827;
    margin: 0 0 20px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.welcome-message {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.5;
}

/* Errors */
.login-error,
ul.errorlist.nonfield {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 16px;
    list-style: none;
    font-size: 13px;
    text-align: left;
}

ul.errorlist.nonfield li {
    margin: 0;
    padding: 4px 0;
}

/* Form */
.login-form {
    margin-bottom: 20px;
    text-align: left;
}

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

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

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

input:focus {
    border-color: #c14468;
    box-shadow: 0 0 0 3px rgba(193, 68, 104, 0.18);
}

input::placeholder { color: #9ca3af; }

.login-button {
    width: 100%;
    padding: 10px;
    background: #c14468;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    margin-top: 4px;
}

.login-button:hover {
    background: #a83a5a;
    box-shadow: 0 2px 10px rgba(193, 68, 104, 0.28);
}

.register-link {
    margin-top: 16px;
    color: #6b7280;
    font-size: 13px;
}

.register-link a {
    color: #c14468;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    color: #a83a5a;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-card { padding: 24px 20px 20px; }
    h1 { font-size: 1.2rem; }
}
