/* ================================================================
   City Clinic IT Support — Login Page
   Aesthetic: Refined Corporate Medical — navy split panel, elevated
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:          #0b1d3a;
  --navy-mid:      #122c5c;
  --navy-light:    #1a3d7c;
  --navy-deep:     #060f1e;
  --teal:          #00c4b8;
  --teal-glow:     #00e5d8;
  --teal-dim:      rgba(0, 196, 184, 0.15);
  --teal-light:    #e0faf8;
  --bg:            #f2f6fb;
  --white:         #ffffff;
  --slate:         #5e6e8a;
  --slate-light:   #8fa0b8;
  --border:        #d8e4f0;
  --text:          #0f1f3d;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --shadow-sm:     0 2px 8px rgba(11,29,58,0.08);
  --shadow-md:     0 6px 24px rgba(11,29,58,0.13);
  --shadow-lg:     0 16px 52px rgba(11,29,58,0.2);
  --transition:    all 0.24s cubic-bezier(0.4, 0, 0.2, 1);

  /* Glass */
  --glass-bg:      rgba(255,255,255,0.05);
  --glass-border:  rgba(255,255,255,0.1);
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
}

/* ── Left Panel ─────────────────────────────────────────────── */
.panel-left {
  background: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,196,184,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 80%, rgba(26,61,124,0.6) 0%, transparent 60%),
    linear-gradient(160deg, #0b1d3a 0%, #060f1e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}

/* Decorative grid overlay */
.panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,196,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,196,184,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Glowing orb */
.panel-left::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,184,0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

.brand-lockup {
  margin-bottom: 60px;
  animation: fadeSlideUp 0.7s ease both;
  position: relative;
  z-index: 1;
}

.brand-icon-wrap {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0,196,184,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(0,196,184,0.18), 0 0 0 4px rgba(0,196,184,0.08);
}

.brand-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.brand-name span {
  color: var(--teal);
}

.brand-tagline {
  font-size: 14.5px;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
  max-width: 320px;
}

/* Divider line */
.brand-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border: none;
  margin: 20px 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.7s 0.15s ease both;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.72);
  font-size: 13.5px;
  line-height: 1.5;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.feature-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0,196,184,0.25);
  color: rgba(255,255,255,0.92);
  transform: translateX(4px);
}

.feature-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0,196,184,0.12);
  border: 1px solid rgba(0,196,184,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-dot i {
  font-size: 14px;
  color: var(--teal);
}

/* ── Right Panel ─────────────────────────────────────────────── */
.panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 56px 48px;
  position: relative;
  animation: fadeSlideUp 0.6s 0.1s ease both;
}

/* Subtle top accent */
.panel-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy-mid));
}

.form-wrap {
  width: 100%;
  max-width: 400px;
}

.form-heading {
  margin-bottom: 38px;
}

.form-heading h2 {
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.form-heading p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

/* Error alert */
.error-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff4f4;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 24px;
}

.error-alert i {
  font-size: 15px;
  flex-shrink: 0;
}

/* Form fields */
.form-wrap form p {
  margin-bottom: 20px;
}

.form-wrap form label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Input wrapper for icon support */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input[type="password"],
.input-wrap input[type="text"] {
  padding-right: 44px;
}

/* Password show/hide toggle */
.toggle-password-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--slate-light);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-password-btn:hover {
  color: var(--teal);
  background: var(--teal-dim);
}

.toggle-password-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.form-wrap form input[type="text"],
.form-wrap form input[type="password"],
.form-wrap form input[type="email"] {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.form-wrap form input:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,196,184,0.1);
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,196,184,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11,29,58,0.32);
}

.btn-login:hover::before { left: 100%; }
.btn-login:active { transform: translateY(0); }

/* Footer note */
.form-footer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--slate-light);
  line-height: 1.7;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.form-footer i {
  margin-right: 6px;
  color: var(--slate-light);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .panel-left { display: none; }
  .panel-right { padding: 40px 24px; }
}