/* =========================================================
   DOCTOR PORTAL - LOGIN
   ========================================================= */

:root {
    --doctor-primary: #0f766e;
    --doctor-primary-dark: #115e59;
    --doctor-primary-light: #ccfbf1;
    --doctor-blue: #2563eb;
    --doctor-dark: #0f172a;
    --doctor-dark-soft: #1e293b;
    --doctor-text: #0f172a;
    --doctor-muted: #64748b;
    --doctor-border: #e2e8f0;
    --doctor-bg: #f8fafc;
    --doctor-danger: #dc2626;
    --doctor-danger-bg: #fef2f2;
    --doctor-danger-border: #fecaca;
    --doctor-white: #ffffff;
    --doctor-radius: 16px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--doctor-bg);
    color: var(--doctor-text);
}


/* =========================================================
   MAIN WRAPPER
   ========================================================= */

.doctor-login-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(500px, 1fr);
}


/* =========================================================
   LEFT PANEL
   ========================================================= */

.doctor-login-brand {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 48px 56px;
    color: var(--doctor-white);
    background: radial-gradient( circle at 10% 15%, rgba(45, 212, 191, 0.18), transparent 28%), radial-gradient( circle at 90% 85%, rgba(37, 99, 235, 0.18), transparent 30%), linear-gradient( 145deg, #0f172a 0%, #102a3a 50%, #0f172a 100%);
}


/* decorative pattern */

.doctor-login-brand::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -170px;
    top: -130px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.doctor-login-brand::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -120px;
    bottom: -100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}


/* =========================================================
   BRAND HEADER
   ========================================================= */

.doctor-brand-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.doctor-brand-logo {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 15px;
    background: linear-gradient( 135deg, #14b8a6, #0d9488);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.25);
}

.doctor-brand-logo i {
    font-size: 21px;
}

.doctor-brand-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.doctor-brand-subtitle {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 13px;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.doctor-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    margin: auto 0;
    padding: 60px 0;
}

.doctor-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 26px;
    padding: 9px 14px;
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.08);
    color: #5eead4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.doctor-security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1);
}

.doctor-brand-title {
    margin: 0;
    max-width: 570px;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.doctor-brand-title span {
    display: block;
    color: #5eead4;
}

.doctor-brand-description {
    max-width: 530px;
    margin: 24px 0 0;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.doctor-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.doctor-feature-card {
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.doctor-feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(94, 234, 212, 0.18);
}

.doctor-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 11px;
    background: rgba(20, 184, 166, 0.1);
    color: #5eead4;
}

.doctor-feature-title {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
}

.doctor-feature-text {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   LEFT FOOTER
   ========================================================= */

.doctor-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 12px;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.doctor-login-form-side {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: linear-gradient( 180deg, #ffffff 0%, #fbfdff 100%);
}

.doctor-login-box {
    width: 100%;
    max-width: 430px;
}


/* =========================================================
   MOBILE BRAND
   ========================================================= */

.doctor-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 38px;
}

.doctor-mobile-logo {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--doctor-dark);
    color: var(--doctor-white);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   LOGIN HEADER
   ========================================================= */

.doctor-login-eyebrow {
    margin: 0 0 10px;
    color: var(--doctor-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.doctor-login-title {
    margin: 0;
    color: var(--doctor-text);
    font-size: 36px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.doctor-login-description {
    margin: 12px 0 0;
    color: var(--doctor-muted);
    font-size: 14px;
    line-height: 1.7;
}

.doctor-login-header {
    margin-bottom: 30px;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.doctor-login-error {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 14px 15px;
    border: 1px solid var(--doctor-danger-border);
    border-radius: 12px;
    background: var(--doctor-danger-bg);
    color: var(--doctor-danger);
}

.doctor-login-error-icon {
    padding-top: 2px;
}

.doctor-login-error-title {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
}

.doctor-login-error ul {
    margin: 0;
    padding-left: 17px;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.doctor-form-group {
    margin-bottom: 20px;
}

.doctor-form-label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.doctor-input-wrapper {
    position: relative;
}

.doctor-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
}

.doctor-form-input {
    width: 100%;
    height: 50px;
    padding: 0 46px;
    border: 1px solid var(--doctor-border);
    border-radius: 12px;
    outline: none;
    background: var(--doctor-white);
    color: var(--doctor-text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.doctor-form-input::placeholder {
    color: #94a3b8;
}

.doctor-form-input:hover {
    border-color: #cbd5e1;
}

.doctor-form-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}


/* =========================================================
   PASSWORD BUTTON
   ========================================================= */

.doctor-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.doctor-password-toggle:hover {
    background: #f1f5f9;
    color: #334155;
}


/* =========================================================
   REMEMBER
   ========================================================= */

.doctor-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 24px;
}

.doctor-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
}

.doctor-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--doctor-primary);
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.doctor-login-button {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient( 135deg, #0f766e, #0d9488);
    color: var(--doctor-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.doctor-login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24);
}

.doctor-login-button:active {
    transform: translateY(0);
}

.doctor-login-button:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.25);
    outline-offset: 2px;
}


/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.doctor-login-footer {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
}

.doctor-login-footer i {
    margin-right: 5px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1023px) {
    .doctor-login-page {
        display: block;
    }
    .doctor-login-brand {
        display: none;
    }
    .doctor-login-form-side {
        padding: 40px 28px;
        background: radial-gradient( circle at top left, rgba(20, 184, 166, 0.07), transparent 35%), #ffffff;
    }
    .doctor-mobile-brand {
        display: flex;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
    .doctor-login-form-side {
        align-items: flex-start;
        padding: max(28px, env(safe-area-inset-top)) 20px 28px;
    }
    .doctor-login-box {
        max-width: none;
    }
    .doctor-mobile-brand {
        margin-bottom: 42px;
    }
    .doctor-login-title {
        font-size: 31px;
    }
    .doctor-login-header {
        margin-bottom: 27px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {
    .doctor-login-form-side {
        padding-left: 16px;
        padding-right: 16px;
    }
    .doctor-login-title {
        font-size: 28px;
    }
}


/* =========================================================
   SHORT HEIGHT SCREENS
   ========================================================= */

@media (min-width: 1024px) and (max-height: 720px) {
    .doctor-login-brand {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .doctor-brand-content {
        padding: 30px 0;
    }
    .doctor-feature-grid {
        margin-top: 25px;
    }
    .doctor-login-form-side {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

#phpdebugbar,
#phpdebugbar,
.phpdebugbar,
div[id^="phpdebugbar"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}