/* Identity Pages Custom Styling to match MudBlazor MainLayout */

/* Import main site styles */
@import url('./site.css');

/* Body and overall layout */
body {
    font-family: 'Roboto', 'roboto', Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation bar enhancements */
.navbar-brand {
    font-family: 'Arista2.0' !important;
    font-size: 24px !important;
    font-weight: bold;
}

/* Card-style containers for forms */
.identity-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 32px;
    margin: 24px 0;
    border: 1px solid #e0e0e0;
}

/* Form styling improvements */
.form-floating {
    margin-bottom: 16px;
}

.form-control {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(244, 81, 30, 0.2);
    outline: none;
}

/* Button styling to match MudBlazor */
.btn-primary {
    background-color: var(--main-color);
    border-color: var(--main-color);
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 81, 30, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(244, 81, 30, 0.3);
}

/* Secondary buttons */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Link styling */
a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 16px;
}

h1 {
    font-size: 32px;
    margin-bottom: 24px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Validation styling */
.text-danger {
    color: var(--error-color) !important;
    font-size: 12px;
    margin-top: 4px;
}

.field-validation-error {
    color: var(--error-color);
    font-size: 12px;
}

/* Checkbox styling */
.form-check-input {
    border: 2px solid #d0d0d0;
    border-radius: 3px;
}

.form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(244, 81, 30, 0.2);
}

/* External login buttons */
.btn-external {
    border: 1px solid #d0d0d0;
    background: white;
    color: #333;
    padding: 12px 24px;
    border-radius: 4px;
    margin: 8px 0;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-external:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #333;
}

/* Manage account navigation */
.nav-pills .nav-link {
    color: #666;
    border-radius: 4px;
    margin-bottom: 4px;
}

.nav-pills .nav-link.active {
    background-color: var(--main-color);
    color: white;
}

.nav-pills .nav-link:hover {
    background-color: rgba(244, 81, 30, 0.1);
    color: var(--main-color);
}

/* Status messages */
.alert {
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
    color: #1976d2;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #388e3c;
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    color: #d32f2f;
}

/* Footer enhancements */
.footer {
    margin-top: auto;
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .identity-card {
        margin: 16px 0;
        padding: 24px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 20px;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid rgba(244, 81, 30, 0.5);
    outline-offset: 2px;
}