/* ============================================================
   Login page — standalone (does not extend base.html)
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container img {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 16px;
}

.logo-container h1 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 8px;
}

.logo-container p {
    color: #718096;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid #c53030;
}

.form-errors {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid #c53030;
}

.form-errors ul {
    list-style: none;
    padding: 0;
}

.form-errors li {
    margin-bottom: 4px;
}

.help-text {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 13px;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.footer-links {
    margin-top: 24px;
    text-align: center;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.placeholder-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.placeholder-logo svg {
    width: 60px;
    height: 60px;
    fill: white;
}

/* ── Responsive — Phone (≤ 600px) ─────────────────────────── */

@media (max-width: 600px) {
    .login-container {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .logo-container h1 {
        font-size: 22px;
    }

    .form-group input {
        font-size: 16px; /* prevent iOS auto-zoom */
    }
}
