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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Georgia, serif;
    background: linear-gradient(160deg, #1f2b34 0%, #2C4251 50%, #3d5a6e 100%);
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.auth-card {
    background: white;
    padding: 44px 36px 36px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: cardIn 0.3s ease;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-logo {
    display: block;
    margin: 0 auto 8px;
    width: 180px;
    height: auto;
}

.auth-tagline {
    text-align: center;
    font-size: 12px;
    color: #8a9bb0;
    margin: 0 0 28px;
    letter-spacing: 0.03em;
}

.auth-title {
    text-align: center;
    font-size: 22px;
    color: #1f2b34;
    margin: 0 0 4px;
    font-family: Georgia, serif;
}

.auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: #8a9bb0;
    margin: 0 0 24px;
}

.auth-message {
    text-align: center;
    background: #e8f0fb;
    color: #2C4251;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
    border-left: 3px solid #4a7fc1;
}

.auth-message.error {
    background: #fce8e6;
    color: #a03c14;
    border-color: #e8805a;
}

.auth-message.success {
    background: #e6f4ea;
    color: #2e7d32;
    border-color: #4caf8a;
}

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

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7a8c9a;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font-family: Georgia, serif;
    font-size: 14px;
    color: #1f2b34;
    background: #f7f9fb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: #2C4251;
    background: white;
    box-shadow: 0 0 0 3px rgba(44,66,81,0.09);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2C4251, #3d5a6e);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 3px 10px rgba(44,66,81,0.3);
    letter-spacing: 0.02em;
}

.auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #8a9bb0;
}

.auth-footer a {
    color: #4a7fc1;
    text-decoration: none;
    font-weight: 700;
}

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

.auth-divider {
    border: none;
    border-top: 1px solid #eef0f3;
    margin: 20px 0;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px 24px;
        border-radius: 12px;
        margin: 16px;
    }
    .auth-logo { width: 140px; }
}
