/* =====================================================
   CLINIQUE SOEURS YENDOUBE – Login Page
   Design by Allo All e-IT
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700&display=swap');

:root {
  --blue-royal:    #0D47A1;
  --blue-mid:      #1565C0;
  --blue-light:    #1976D2;
  --green-emerald: #2E7D32;
  --green-light:   #388E3C;
  --white:         #FFFFFF;
  --gray-bg:       #F5F7FA;
  --gray-dark:     #212121;
  --gray-med:      #5C6370;
  --gray-border:   #E0E5EC;
  --shadow-card:   0 20px 60px rgba(13,71,161,.18), 0 4px 16px rgba(0,0,0,.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ---- Geometric decorations ---- */
.geo-left {
  position: fixed; left: -80px; bottom: -80px;
  width: 400px; height: 400px;
  background: linear-gradient(135deg, var(--blue-royal) 60%, var(--blue-mid));
  border-radius: 50%;
  opacity: .12;
  pointer-events: none;
}
.geo-right {
  position: fixed; right: -60px; top: -60px;
  width: 320px; height: 320px;
  background: linear-gradient(225deg, var(--green-emerald) 60%, var(--green-light));
  border-radius: 50%;
  opacity: .10;
  pointer-events: none;
}

/* Top bar accent */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-royal) 0%, var(--green-emerald) 100%);
}

/* ---- Card ---- */
.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.8rem 2.6rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-royal), var(--green-emerald));
  border-radius: 20px 20px 0 0;
}

/* ---- Logo ---- */
.login-logo {
  max-height: 110px;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(13,71,161,.15));
}
.logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.logo-cross-icon {
  font-size: 3rem;
  color: var(--green-emerald);
  line-height: 1;
}
.logo-fallback span {
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-royal);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---- Titles ---- */
.login-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-royal);
  text-align: center;
  letter-spacing: -.01em;
  margin-bottom: .25rem;
}
.login-subtitle {
  font-size: .78rem;
  color: var(--gray-med);
  text-align: center;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---- Inputs ---- */
.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-border);
  border-radius: 10px;
  background: #FAFBFD;
  transition: border-color .2s, box-shadow .2s;
}
.input-group-custom:focus-within {
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 3px rgba(13,71,161,.10);
  background: var(--white);
}
.input-icon {
  padding: 0 .9rem;
  color: var(--blue-royal);
  font-size: 1rem;
  flex-shrink: 0;
}
.form-input {
  border: none;
  background: transparent;
  padding: .75rem .75rem .75rem 0;
  font-size: .92rem;
  color: var(--gray-dark);
  width: 100%;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.form-input::placeholder { color: #A0A8B4; }

/* ---- Login button ---- */
.btn-login {
  background: linear-gradient(135deg, var(--blue-royal) 0%, var(--blue-mid) 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: .8rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(13,71,161,.35);
  letter-spacing: .01em;
}
.btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,71,161,.45);
}
.btn-login:active:not(:disabled) { transform: translateY(0); }
.btn-login:disabled { opacity: .75; cursor: not-allowed; }

/* ---- Footer ---- */
.login-footer {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-med);
}
.forgot-link, .support-link {
  color: var(--blue-royal);
  text-decoration: none;
  font-weight: 500;
}
.forgot-link:hover, .support-link:hover { text-decoration: underline; color: var(--green-emerald); }
.separator { margin: 0 .5rem; }
.support-link strong { color: var(--green-emerald); }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .login-card { padding: 2rem 1.4rem 1.5rem; border-radius: 16px; }
  .login-title { font-size: 1.15rem; }
}
