* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.auth-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #337ab7;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.1);
}

.form-field input::placeholder {
    color: #aaa;
}

.form-field small {
    font-size: 12px;
    color: #888;
}

.readonly-display {
    background-color: #f5f5f5;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 16px;
    color: #666;
    border: 1px solid #e0e0e0;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row input {
    flex: 1;
}

.input-row select {
    width: auto;
    min-width: 70px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #337ab7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.auth-btn:hover {
    background-color: #286090;
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.auth-links a {
    color: #337ab7;
    text-decoration: none;
}

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

.auth-links p {
    margin: 8px 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    padding: 0 16px;
    color: #999;
    font-size: 13px;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.flash-message.info {
    background-color: #e7f3ff;
    color: #0066cc;
    border: 1px solid #b3d7ff;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 16px 20px;
    font-size: 14px;
}

.auth-nav a {
    color: #337ab7;
    text-decoration: none;
}

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

.auth-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #888;
}

.auth-footer a {
    color: #337ab7;
    text-decoration: none;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }
    
    .auth-container {
        padding: 0;
        justify-content: flex-start;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .form-field input,
    .form-field select {
        padding: 14px;
    }
    
    .auth-btn {
        padding: 16px;
    }
}
