/* ========================================
   Healthcare Malta - Custom Styles
   Healthcare Design System (IRDM-aligned)
   ======================================== */

/* Color Variables - InfiniDesk Design System */
:root {
    --primary-color: #1640FF;
    --primary-dark: #02023A;
    --primary-light: #3358FF;
    --secondary-color: #e8b45b;
    --accent-color: #d58a1f;
    --ink: #02023A;
    --muted: #9ca3af;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --card: #fff;
    --nav: #02023A;
    --teal: #1640FF;
    --teal2: #3358FF;
    --pale: #eff6ff;
    --amber: #d58a1f;
    --amber-bg: #fff3dc;
    --red: #dc2626;
    --red-bg: #fef2f2;
    --green: #059669;
    --green-bg: #f0fdf4;
    --shadow: none;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

/* Global Styles */
body {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    color: var(--ink);
}

/* Auth Page Styles */
.auth-page {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

.auth-container {
    position: relative;
    width: 100%;
}

.auth-card {
    background: var(--card);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    animation: slideUp 0.5s ease-out;
    border: 1px solid var(--gray-200);
    max-width: 480px;
    margin: 0 auto;
}

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

.auth-header h2 {0.5rem;
    font-weight: 700;
    font-size: 1.75rem;
}

.auth-header p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 0
    color: var(--muted);
    font-size: 16px;
}

.auth-logo {
    display: inline-block;
    padding: 0;
    background: transparent;
    border-radius: 50%;
}

.auth-logo .brand-mark {
    height: 64px;
    width: 64px;
    border-radius: 16px;
    background: var(--primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo i {
    color: white !important;
    font-size: 2.5rem !important;
}

/* Form Styles */
.auth-form .form-label {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    font-size: 13px;
}

.auth-form .form-control,gray-200);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--card);
    color: var(--ink);
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(22, 64, 255, 0.2);
    outline: none;
}

.auth-form .form-control-lg {
    padding: 14px 18px;
    font-size: 16px;
}

.auth-form .input-group .btn {
    border: 1px solid var(--line);
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: var(--card);
    color: var(--muted);
}

.auth-form .input-group .btn:hover {
    background: var(--pale);
    color: var(--primary-color);
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 17px;
}

/* Link Styles */
a {
    color: var(--primary-color);
    transition: color 0.2s ease;
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: 1px solid;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-success {
    background-color: var(--green-bg);
    color: var(--green);
    border-color: #bbf7d0;
}

.alert-danger {
    background-color: var(--red-bg);
    color: var(--red);
    border-color: #fecaca;
}

.alert-info {
    background-color: var(--pale);
    color: var(--primary-color);
    border-color: #bfdbfe;
}

/* Form Check Styles */
.form-check-input {
    border: 1px solid var(--line);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(22, 64, 255, 0.15);
}

/* Form Text */
.form-text {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background: var(--gray-200);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--red);
}

.password-strength-bar.medium {
    width: 66%;
    background: var(--amber);
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .auth-logo {
        padding: 15px;
    }
    
    .auth-logo i {
        font-size: 2.5rem !important;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Input Icons */
.form-label i {
    color: var(--gray-400);
}

/* Card Hover Effect - No shadows per InfiniDesk guidelines */
.auth-card:hover {
    border-color: var(--gray-300);
    transition: border-color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* Select Dropdown */
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231640FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Footer Text */
.text-muted.small {
    font-size: 14px;
    opacity: 0.8;
}

/* Additional Utility Classes */
.text-teal {
    color: var(--teal);
}

.bg-teal {
    background-color: var(--teal);
}

.border-teal {
    border-color: var(--teal);
}
