.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #2a3e5f;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #304b75;
    border-radius: 4px;
    background-color: #1a2b47;
    color: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #4f8fda;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: #4f8fda;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #3d7bc8;
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #4f8fda;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #ff4444;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Flash messages */
.flash-message {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
}

.flash-success, .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error, .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    margin: 5px 0;
}

/* Demo credentials styling */
.demo-credentials {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.demo-credentials h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
}

.demo-credentials p {
    margin: 5px 0;
    font-size: 12px;
    color: #6c757d;
}

/* Improved form styling */
.form-group small {
    display: block;
    color: #6c757d;
    font-size: 11px;
    margin-top: 5px;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
}

.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Loading states */
.auth-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-button.loading::after {
    content: "...";
    animation: loading 1s infinite;
}

@keyframes loading {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
}

/* Security indicators */
.password-strength {
    height: 4px;
    width: 100%;
    margin-top: 5px;
    border-radius: 2px;
    background-color: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.password-strength-weak .password-strength-bar {
    width: 33%;
    background-color: #dc3545;
}

.password-strength-medium .password-strength-bar {
    width: 66%;
    background-color: #ffc107;
}

.password-strength-strong .password-strength-bar {
    width: 100%;
    background-color: #28a745;
}