@charset "utf-8";
/* CSS Document */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --blue-dark: #1a2e5a;
    --blue-mid: #2453a0;
    --teal: #1aa8a0;
    --teal-bright: #17c0b0;
    --btn-grad: linear-gradient(90deg, #3a6de8 0%, #1abfb0 100%);
    --link-blue: #3a6de8;
    --text-dark: #111827;
    --text-mid: #374151;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --input-bg: #f9fafb;
    --white: #ffffff;
    --card-shadow: 0 8px 40px rgba(0,0,0,0.13);
    --font: 'Manrope', sans-serif;
  }

  html, body {
    font-family: var(--font);
    min-height: 100%;
    background: #0d2346;
  }

  /* ── Background ── */
  .bg-wrap {
    position: fixed; inset: 0; z-index: 0;
    background: url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  }
  .bg-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,35,70,0.82) 0%, rgba(14,80,100,0.75) 50%, rgba(14,122,116,0.72) 100%);
  }

  /* ── Page shell ── */
  .page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* ── Header / Logo ── */
  .logo-bar {
    padding: 18px 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 56px; height: 56px;
    background: var(--white);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800;
    color: var(--blue-dark);
    letter-spacing: -1px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    flex-shrink: 0;
  }
  .logo-text { color: var(--white); }
  .logo-text h1 { font-size: 20px; font-weight: 700; line-height: 1.2; }
  .logo-text p { font-size: 13px; opacity: 0.75; font-weight: 400; }

  /* ── Two-column hero ── */
  .hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 36px 12px;
    gap: 48px;
  }

  /* Left copy */
  .hero-copy {
    flex: 1;
    max-width: 560px;
    color: var(--white);
  }
  .hero-copy h2 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
  }
  .hero-copy p {
    font-size: clamp(13px, 1.5vw, 15px);
    opacity: 0.7;
    line-height: 1.7;
    max-width: 420px;
    font-weight: 400;
  }

  /* Right card */
  .card-wrap {
    flex-shrink: 0;
    width: 100%;
    max-width: 440px;
  }
  .card {
    background: var(--white);
    border-radius: 20px;
    padding: 44px 44px 36px;
    box-shadow: var(--card-shadow);
  }

  /* ── View system ── */
  .view { display: none; }
  .view.active { display: block; }

  #view-login,
  #view-forgot,
  #view-register,
  #view-dashboard-stub { /* all views same natural flow */ }

  /* ── Form elements ── */
  .label-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--link-blue);
    margin-bottom: 10px;
  }
  .card h3 {
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1.5px;
    margin-bottom: 28px;
    line-height: 1.1;
  }

  .field { margin-bottom: 18px; }
  .field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
  }
  .field input,
  .field select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
  }
  .field input::placeholder { color: #9ca3af; }
  .field input:focus,
  .field select:focus {
    border-color: var(--link-blue);
    box-shadow: 0 0 0 3px rgba(58,109,232,0.12);
  }

  /* Select wrapper for arrow */
  .select-wrap { position: relative; }
  .select-wrap select { padding-right: 36px; cursor: pointer; }
  .select-wrap::after {
    content: '⌄';
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-52%);
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
  }

  /* ── Primary button ── */
  .btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--btn-grad);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.15s;
  }
  .btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
  .btn-primary:active { transform: translateY(0); }

  /* ── Footer links ── */
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
  }
  .card-footer a,
  .link-btn {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--link-blue);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    padding: 0;
    transition: opacity 0.2s;
  }
  .card-footer a:hover,
  .link-btn:hover { opacity: 0.7; text-decoration: underline; }

  /* ── Back link ── */
  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--link-blue);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    margin-bottom: 20px;
    padding: 0;
    transition: opacity 0.2s;
  }
  .back-link:hover { opacity: 0.7; }

  /* ── Success/info box ── */
  .info-box {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #1e40af;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* ── Divider ── */
  .divider {
    text-align: center;
    font-size: 12px;
    color: #d1d5db;
    margin: 14px 0;
    position: relative;
  }
  .divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
  }
  .divider::before { left: 0; }
  .divider::after { right: 0; }

  /* ── Two-col grid ── */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

  

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .hero { flex-direction: column; align-items: center; padding: 16px 20px 40px; gap: 32px; }
    .hero-copy { max-width: 100%; text-align: center; }
    .hero-copy p { max-width: 100%; }
    .card-wrap { max-width: 100%; }
    .logo-bar { padding: 20px; }
  }
  @media (max-width: 640px) {
    .hero-copy { display: none; }
    .hero { padding: 8px 16px 36px; }
  }
  @media (max-width: 520px) {
    .card { padding: 32px 22px 28px; }
    .two-col { grid-template-columns: 1fr; gap: 0; }
    .logo-bar { padding: 16px; }
    .logo-icon { width: 46px; height: 46px; font-size: 20px; }
  }


.loader-overlay{

    position:fixed;

    inset:0;

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(4px);

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:999999;
}

.medical-loader{

    position:relative;

    width:140px;

    height:140px;

    border-radius:50%;

    background:linear-gradient(135deg,#4f7dff,#22c1c3);

    box-shadow:
    0 0 25px rgba(79,125,255,.35),
    0 0 50px rgba(79,125,255,.2);

    animation:pulse 1.5s ease-in-out infinite;
}

.medical-loader:before{

    content:"";

    position:absolute;

    inset:-12px;

    border-radius:50%;

    border:8px solid transparent;

    border-top:8px solid #4f7dff;

    border-right:8px solid #22c1c3;

    animation:spin .8s linear infinite;
}

.medical-loader:after{

    content:"";

    position:absolute;

    inset:-28px;

    border-radius:50%;

    border:4px dashed rgba(79,125,255,.35);

    animation:spinReverse 3s linear infinite;
}

.doctor-icon{

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    font-size:42px;

    white-space:nowrap;

    animation:bounce 1s ease-in-out infinite;
}

@keyframes spin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}

@keyframes spinReverse{

    from{
        transform:rotate(360deg);
    }

    to{
        transform:rotate(0deg);
    }
}

@keyframes bounce{

    0%,100%{

        transform:translate(-50%,-50%) scale(1);
    }

    50%{

        transform:translate(-50%,-50%) scale(1.15);
    }
}

@keyframes pulse{

    0%,100%{

        transform:scale(1);
    }

    50%{

        transform:scale(1.05);
    }
}


.mini-spinner{

    width:30px;
    height:30px;

    border:3px solid #e5e5e5;

    border-top:3px solid #0d6efd;

    border-radius:50%;

    animation:spin-mini .5s linear infinite;

    display:inline-block;
}

@keyframes spin-mini{

    to{
        transform:rotate(360deg);
    }
}


.password-wrapper{

    position:relative;
}

.password-wrapper input{

    width:100%;
    padding-right:45px;
}

.toggle-password{

    position:absolute;

    right:15px;
    top:50%;

    transform:translateY(-50%);

    cursor:pointer;

    font-size:18px;

    user-select:none;
}


.otp-box{

    display:flex;

    width:100%;
}

.otp-box input{

    flex:1;

    border:1px solid #ddd;

    border-right:none;

    border-radius:8px 0 0 8px;

    padding:12px 15px;

    outline:none;
}

.otp-box button{

    background:#28a745;

    color:#fff;

    border:none;

    padding:0 20px;

    cursor:pointer;

    font-weight:bold;

    border-radius:0 8px 8px 0;
}

.otp-box button:hover{

    background:#218838;
}



.shake{

    animation:shake 0.4s;
}

@keyframes shake{

    0%{transform:translateX(0);}
    20%{transform:translateX(-5px);}
    40%{transform:translateX(5px);}
    60%{transform:translateX(-5px);}
    80%{transform:translateX(5px);}
    100%{transform:translateX(0);}
}


.alert{
    padding:15px 18px;
    margin:10px 0;
    border-radius:10px;
    font-size:14px;
    font-weight:500;
    line-height:1.5;
    border-left:5px solid;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    animation:fadeIn .3s ease-in-out;
}

.alert.success{
    background:#e8f8ee;
    color:#0f5132;
    border-color:#28a745;
}

.alert.warning{
    background:#fff8e6;
    color:#856404;
    border-color:#ffc107;
}

.alert.error{
    background:#fdeaea;
    color:#842029;
    border-color:#dc3545;
}

.alert.info{
    background: #cff4fc;
    color: #055160;
    border: 1px solid #9eeaf9;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}


.loading-dots,
.loading-dots::before,
.loading-dots::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    /*background: linear-gradient(45deg, green, #0d6efd, orange); /* Change color here */
    display: inline-block;
}


.loading-dots {
    background: green;
}

.loading-dots::before {
    background: #0d6efd;
}

.loading-dots::after {
    background: red;
}


.loading-dots {
    position: relative;
    animation: dot1 1.5s infinite;
}

.loading-dots::before,
.loading-dots::after {
    content: "";
    position: absolute;
    top: 0;
    opacity: 0;
}

.loading-dots::before {
    left: 14px;
    animation: dot2 1.5s infinite;
}

.loading-dots::after {
    left: 28px;
    animation: dot3 1.5s infinite;
}

@keyframes dot1 {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
}

@keyframes dot2 {
    0%, 25%, 100% { opacity: 0; }
    40%, 75% { opacity: 1; }
}

@keyframes dot3 {
    0%, 50%, 100% { opacity: 0; }
    65%, 75% { opacity: 1; }
}