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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 20px;
    padding: 32px 40px 40px;
    background: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.05);
}

.login-logo {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
    color: #18355D;
}

.login-logo svg {
    width: 40px;
    height: auto;
}

.login-form h1 {
    margin-bottom: 8px;
    color: #18355D;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.status-text,
.user-line {
    color: #6b7280;
}

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

.form-group:first-of-type {
    margin-top: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #18355D;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5d9e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    color: #18355D;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input::placeholder {
    color: #9aa3b2;
}

.form-group input:hover {
    border-color: #b7bfcc;
}

.form-group input:focus {
    outline: none;
    border-color: #18355D;
    box-shadow: 0 0 0 3px rgba(24, 53, 93, 0.15);
}

.login-button {
    width: 100%;
    padding: 13px;
    background: #18355D;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.login-button:hover {
    background: #12294A;
}

.login-button:active {
    background: #18355D;
    transform: scale(0.99);
}

.spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid #e5e8ee;
    border-top: 3px solid #18355D;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* keep as a class, not inline style, so CSP style-src 'self' works without unsafe-inline */
.status-text {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

.user-line {
    margin: 20px 0;
    font-size: 15px;
}

.user-line #userEmail {
    color: #18355D;
    font-weight: 600;
}
