/* ===========================================================
   ShiftEaze Login Theme — login.css
   Complete standalone page — no Odoo Bootstrap/assets loaded.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

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

:root {
  --primary:          #39287b;
  --primary-hover:    #2c1f63;
  --primary-light:    rgba(57,40,123,0.10);
  --brand-gradient:   linear-gradient(120deg, #39287b 0%, #6a2a83 52%, #d70c18 100%);
  --rcsl-red:         #d70c18;
  --error:            #d70c18;
  --error-light:      rgba(215,12,24,0.08);
  --background:       #ffffff;
  --surface:          #f4f6fa;
  --border:           #e2e8f0;
  --text-primary:     #0f172a;
  --text-secondary:   #64748b;
  --text-tertiary:    #94a3b8;
  --font-sans:        'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:       'Instrument Serif', Georgia, serif;
  --shadow-lg:        0 10px 18px -3px rgba(16,24,64,0.12), 0 4px 8px -4px rgba(16,24,64,0.06);
  --shadow-glow:      0 0 0 1px rgba(57,40,123,0.08), 0 18px 48px -12px rgba(57,40,123,0.35);
  --radius-xl:        1rem;
  --radius-2xl:       1.5rem;
  --radius-md:        0.5rem;
  --radius-sm:        0.25rem;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-sans);
  background: var(--surface);
  overflow: hidden;
}

/* ── Full-viewport stage ── */
.se-stage {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ── Left Brand Panel ── */
.se-panel {
  position: relative;
  width: 46%;
  flex: none;
  background: var(--brand-gradient);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #fff;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.se-wm {
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 460px;
  opacity: 0.12;
  pointer-events: none;
}

.se-panel-brand { position: relative; z-index: 2; }
.se-rcsl-logo { height: 52px; width: auto; display: block; }

.se-panel-copy {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin: auto 0;
}
.se-panel-copy h2 {
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  color: #fff;
}
.se-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}
/* .se-panel-copy p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.88;
  color: #fff;
} */

/* .se-panel-points {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
} */
.se-point {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  opacity: 0.92;
  color: #fff;
}
.se-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Right area ── */
.se-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

/* ── Login card ── */
.se-card {
  width: 432px;
  max-width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* Card brand header */
.se-card-brand { display: flex; align-items: center; gap: 0.75rem; }
.se-app-logo { height: 34px; width: auto; display: block; }
.se-brand-divider { width: 1px; height: 28px; background: var(--border); flex: none; }
.se-brand-app { display: flex; flex-direction: column; line-height: 1.2; }
.se-brand-portal {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Card heading */
.se-card-head { display: flex; flex-direction: column; gap: 0.35rem; }
.se-card-head h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--text-primary);
}
.se-card-head p { font-size: 0.9375rem; line-height: 1.55; color: var(--text-secondary); }

/* Error alert */
.se-alert {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: var(--error-light);
  border: 1px solid rgba(215,12,24,0.18);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--error);
}

/* Form */
.se-form { display: flex; flex-direction: column; gap: 1rem; }

/* Fields */
.se-field { display: flex; flex-direction: column; gap: 0.4rem; }
.se-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); letter-spacing: 0.005em; }

/* Input wrap */
.se-input-wrap { position: relative; display: flex; align-items: center; }
.se-lead-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color 0.15s;
  flex-shrink: 0;
}

.se-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.8rem 0.95rem 0.8rem 2.7rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.se-input::placeholder { color: var(--text-tertiary); }
.se-input:hover { border-color: var(--text-tertiary); }
.se-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.se-input:focus + .se-lead-icon,
.se-input-wrap:focus-within .se-lead-icon { color: var(--primary); }
.se-has-trail { padding-right: 2.9rem; }

/* Password toggle */
.se-trail {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.se-trail:hover { color: var(--primary); background: var(--primary-light); }

/* Submit button */
.se-btn {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  background: var(--brand-gradient);
  border-radius: var(--radius-xl);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(16,24,64,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: filter 0.15s, box-shadow 0.2s, transform 0.05s;
  margin-top: 0.25rem;
}
.se-btn:hover { filter: brightness(1.08); box-shadow: var(--shadow-glow); }
.se-btn:active { filter: brightness(0.95); transform: translateY(1px); }
.se-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Footer */
.se-card-foot { display: flex; justify-content: center; }
.se-secure {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .se-stage { flex-direction: column; height: auto; min-height: 100vh; overflow-y: auto; }
  html, body { overflow: auto; }
  .se-panel {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
    padding: 1.8rem 2rem 2.6rem;
    min-height: 190px;
  }
  .se-panel-points { display: none; }
  .se-panel-copy { margin: 0.6rem 0 0; }
  .se-panel-copy h2 { font-size: 1.7rem; }
  .se-right { padding: 1.5rem 1.2rem 2rem; align-items: flex-start; }
  .se-card { width: 100%; max-width: 432px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .se-card { border-radius: var(--radius-xl); padding: 1.6rem 1.4rem; }
}
