/* Clinic Authentication Specific Styles */

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --bg-body: #F9FAFB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --white: #ffffff;
    --danger: #EF4444;
}

.clinic-auth-wrapper {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-body);
    padding: 40px 20px;
}

.clinic-auth-card {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

/* Header Section */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .icon-bg {
    width: 60px;
    height: 60px;
    background: #EFF6FF; /* Light blue background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background-color: #fff;
    box-sizing: border-box; /* Fix padding width issue */
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Footer & Alerts */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.alert-error {
    background-color: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FCA5A5;
}

/* --- Clinic Header Styles --- */
.clinic-header {
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    padding: 0 20px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.clinic-header .container, 
.clinic-header .header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text span:first-child {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

.badge-partner {
    font-size: 10px;
    text-transform: uppercase;
    color: #3B82F6;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.clinic-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.clinic-nav a {
    text-decoration: none;
    color: #4B5563;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.clinic-nav a:hover,
.clinic-nav a.active {
    color: #3B82F6;
}

.btn-login {
    padding: 8px 20px;
    background-color: #3B82F6;
    color: white !important;
    border-radius: 6px;
    font-weight: 600;
}

.btn-logout {
    background: none;
    border: 1px solid #E5E7EB;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #EF4444;
}

.btn-logout:hover {
    background: #FEF2F2;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid #E5E7EB;
}

.clinic-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

/* --- Clinic Footer Styles --- */
.clinic-footer {
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    padding: 24px 0;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    color: #6B7280;
}

.footer-right a {
    color: #6B7280;
    text-decoration: none;
}

.footer-right a:hover {
    color: #3B82F6;
}

.separator {
    margin: 0 8px;
    color: #D1D5DB;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .clinic-nav a:not(.btn-login) {
        display: none; /* Hide standard links on mobile auth pages */
    }
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .clinic-auth-card {
        padding: 24px;
    }
}