/* ============================================================
   Lumière Beauty – Login Page CSS
   Matches: app/Views/auth/login.php
   Classes: login-split, login-brand, lb-inner, lb-logo,
            lb-star, lb-shapes, login-form-panel, login-card,
            lc-header, input-wrap, toggle-pw, btn-login,
            alert-error
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose:    #c9637a;
  --deep:    #3d1a2e;
  --light:   #f7f3f9;
  --white:   #ffffff;
  --text:    #1a1a2e;
  --muted:   #888;
  --err:     #c62828;
  --radius:  14px;
  --ff:      'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --shadow:  0 24px 64px rgba(61,26,46,.18);
}

html, body {
  height: 100%;
  font-family: var(--ff);
  background: var(--light);
  direction: rtl;
}

/* ── Outer wrapper ─────────────────────────────────────── */
.login-split {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

/* ── Brand panel (right side in RTL) ──────────────────── */
.login-brand {
  flex: 0 0 42%;
  background: linear-gradient(150deg, var(--deep) 0%, #7b2d52 55%, #c9637a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.lb-inner {
  text-align: center;
  color: var(--white);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.lb-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.lb-logo em { font-style: normal; color: #f4a4bc; }

.lb-star {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

.lb-inner h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}

.lb-inner p {
  font-size: .95rem;
  opacity: .80;
  max-width: 260px;
  line-height: 1.7;
}

/* Decorative shapes */
.lb-shapes { position: absolute; inset: 0; pointer-events: none; }

.sh {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  background: var(--white);
}

.sh1 { width: 280px; height: 280px; top: -80px;  right: -80px; }
.sh2 { width: 180px; height: 180px; bottom: -50px; left: -50px; }
.sh3 { width: 100px; height: 100px; bottom: 30%;  right: 10%; }

/* ── Form panel (left side in RTL) ────────────────────── */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
}

.login-card {
  width: 100%;
  max-width: 400px;
}

/* Card header */
.lc-header { margin-bottom: 1.75rem; text-align: center; }

.lc-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: .35rem;
}

.lc-header p {
  font-size: .9rem;
  color: var(--muted);
}

/* Error alert */
.alert-error {
  background: #fdecea;
  border: 1.5px solid #f5c6c6;
  color: var(--err);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .875rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* Form groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .45rem;
}

/* Input wrapper with SVG icon */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap svg {
  position: absolute;
  right: .9rem;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.input-wrap input {
  width: 100%;
  padding: .75rem 2.8rem .75rem 3rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: var(--ff);
  font-size: .95rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
  direction: ltr;
  text-align: right;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201,99,122,.15);
  background: var(--white);
}

.input-wrap input::placeholder {
  color: #bbb;
  direction: ltr;
}

/* Password toggle button */
.toggle-pw {
  position: absolute;
  left: .8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .2rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color .2s;
}

.toggle-pw:hover { color: var(--rose); }

.toggle-pw svg {
  position: static;
  width: 18px;
  height: 18px;
}

/* Submit button */
.btn-login {
  width: 100%;
  margin-top: .5rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, var(--rose), var(--deep));
  color: var(--white);
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(201,99,122,.35);
}

.btn-login svg {
  width: 18px;
  height: 18px;
}

.btn-login:hover {
  opacity: .9;
  box-shadow: 0 6px 24px rgba(201,99,122,.45);
}

.btn-login:active { transform: scale(.985); }

.btn-login:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 700px) {
  .login-brand { display: none; }
  .login-form-panel { padding: 2rem 1.25rem; }
  .login-card { max-width: 100%; }
}
