/* Authentication Pages Styles */

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Auth-specific form styling overrides */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Auth-specific button styling overrides */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    margin-right: 0.5rem;
}

/* Auth-specific message styling */
.success-message {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.info-message {
    color: #0c5460;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.register-link a,
.login-link a {
    color: #007bff;
    text-decoration: none;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Register Page Specific Styles */
.register-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.password-requirements {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.code-validation {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.code-validation.valid {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.code-validation.invalid {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.code-validation.validating {
    color: #0c5460;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
}

.form-group.has-validation input.valid {
    border-color: #28a745;
}

.form-group.has-validation input.invalid {
    border-color: #dc3545;
}

.registration-mode-toggle {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.mode-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}