/*
 * ╔══════════════════════════════════════════════════════════╗
 * ║  dremoy — Sahera Nayeb Laboratory School                 ║
 * ║  File    : dremoy-login.css                              ║
 * ║  Purpose : Admin Login Page Styles                       ║
 * ║  Version : 1.0                                           ║
 * ╚══════════════════════════════════════════════════════════╝
 *
 * All class names are prefixed with "dremoy-" to avoid
 * conflicts with WordPress/Bootstrap/theme styles.
 */

/* ════════════════════════════════════════════
   0. DESIGN TOKENS
════════════════════════════════════════════ */
:root {
  /* Brand gradient — matches dashboard */
  --dremoy-grad-primary:    linear-gradient(135deg, #1a3a6b 0%, #2563eb 50%, #1d4ed8 100%);
  --dremoy-grad-accent:     linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --dremoy-grad-card:       linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);

  /* Brand colours */
  --dremoy-blue-500:        #2563eb;
  --dremoy-blue-600:        #1d4ed8;
  --dremoy-blue-700:        #1e40af;
  --dremoy-blue-50:         #eff6ff;
  --dremoy-indigo-500:      #6366f1;
  --dremoy-violet-500:      #7c3aed;

  /* Neutral */
  --dremoy-gray-50:         #f8fafc;
  --dremoy-gray-100:        #f1f5f9;
  --dremoy-gray-200:        #e2e8f0;
  --dremoy-gray-300:        #cbd5e1;
  --dremoy-gray-400:        #94a3b8;
  --dremoy-gray-500:        #64748b;
  --dremoy-gray-600:        #475569;
  --dremoy-gray-700:        #334155;
  --dremoy-gray-800:        #1e293b;
  --dremoy-gray-900:        #0f172a;

  /* Semantic */
  --dremoy-success:         #10b981;
  --dremoy-danger:          #ef4444;
  --dremoy-warning:         #f59e0b;

  /* Surface */
  --dremoy-surface:         #ffffff;
  --dremoy-border:          #e2e8f0;

  /* Typography */
  --dremoy-font:            'Hind Siliguri', sans-serif;
  --dremoy-font-display:    'DM Serif Display', serif;
  --dremoy-font-mono:       'JetBrains Mono', monospace;

  /* Shadows */
  --dremoy-shadow-card:     0 25px 60px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.10);
  --dremoy-shadow-btn:      0 8px 24px rgba(37, 99, 235, 0.40);
  --dremoy-shadow-field:    0 0 0 3px rgba(37, 99, 235, 0.12);

  /* Radius */
  --dremoy-r-sm:            8px;
  --dremoy-r-md:            12px;
  --dremoy-r-lg:            20px;
  --dremoy-r-xl:            28px;
  --dremoy-r-full:          9999px;

  /* Transitions */
  --dremoy-ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --dremoy-ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ════════════════════════════════════════════
   1. BASE
════════════════════════════════════════════ */
.dremoy-login-page {
  font-family: var(--dremoy-font);
  background: var(--dremoy-gray-900);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════
   2. ANIMATED BACKGROUND
════════════════════════════════════════════ */
.dremoy-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Subtle grid */
.dremoy-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glowing orbs */
.dremoy-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.dremoy-bg__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: dremoy-orb-float 12s ease-in-out infinite;
}

.dremoy-bg__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  animation: dremoy-orb-float 15s ease-in-out infinite reverse;
}

.dremoy-bg__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: dremoy-orb-pulse 8s ease-in-out infinite;
}

@keyframes dremoy-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes dremoy-orb-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 0.6; transform: translate(-50%,-50%) scale(1.2); }
}

/* ════════════════════════════════════════════
   3. SHELL — two-column layout
════════════════════════════════════════════ */
.dremoy-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 100vh;
}

/* ════════════════════════════════════════════
   4. LEFT ASIDE — branding panel
════════════════════════════════════════════ */
.dremoy-login-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
}

/* Vertical divider */
.dremoy-login-aside::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent, rgba(255,255,255,0.12), transparent);
}

.dremoy-aside-inner {
  max-width: 420px;
  text-align: center;
  animation: dremoy-fade-up 0.8s var(--dremoy-ease) both;
}

/* School crest */
.dremoy-crest {
  margin-bottom: 28px;
}

.dremoy-crest__ring {
  width: 90px; height: 90px;
  margin: 0 auto;
  background: var(--dremoy-grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #fff;
  box-shadow: 0 0 0 12px rgba(37,99,235,0.1), 0 0 0 24px rgba(37,99,235,0.05);
  animation: dremoy-ring-pulse 3s ease-in-out infinite;
}

@keyframes dremoy-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(37,99,235,0.1), 0 0 0 24px rgba(37,99,235,0.05); }
  50%       { box-shadow: 0 0 0 16px rgba(37,99,235,0.15), 0 0 0 32px rgba(37,99,235,0.06); }
}

.dremoy-aside__title {
  font-family: var(--dremoy-font-display);
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.dremoy-aside__sub {
  color: var(--dremoy-gray-400);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

/* Stat pills */
.dremoy-stat-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.dremoy-stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--dremoy-r-full);
  padding: 10px 20px;
  color: var(--dremoy-gray-300);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s var(--dremoy-ease);
}

.dremoy-stat-pill:hover {
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.3);
  color: #fff;
}

.dremoy-stat-pill i {
  color: var(--dremoy-blue-500);
  width: 18px; text-align: center;
}

/* Floating decorative cards */
.dremoy-float-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.dremoy-float-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--dremoy-r-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  animation: dremoy-float 4s ease-in-out infinite;
}

.dremoy-float-card--a {
  background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(37,99,235,0.1));
  border: 1px solid rgba(37,99,235,0.3);
  animation-delay: 0s;
}

.dremoy-float-card--b {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(124,58,237,0.1));
  border: 1px solid rgba(124,58,237,0.3);
  animation-delay: 1s;
}

@keyframes dremoy-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ════════════════════════════════════════════
   5. LOGIN CARD
════════════════════════════════════════════ */
.dremoy-login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  gap: 20px;
}

.dremoy-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--dremoy-surface);
  border-radius: var(--dremoy-r-xl);
  box-shadow: var(--dremoy-shadow-card);
  overflow: hidden;
  animation: dremoy-fade-up 0.6s var(--dremoy-ease) 0.15s both;
}

/* Card top accent line */
.dremoy-login-card::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--dremoy-grad-accent);
}

/* ── Card Header ── */
.dremoy-login-card__header {
  padding: 32px 36px 24px;
  text-align: center;
  border-bottom: 1px solid var(--dremoy-border);
  background: linear-gradient(180deg, var(--dremoy-gray-50) 0%, #fff 100%);
}

.dremoy-login-card__logo {
  width: 52px; height: 52px;
  background: var(--dremoy-grad-accent);
  border-radius: var(--dremoy-r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}

.dremoy-login-card__title {
  font-family: var(--dremoy-font-display);
  font-size: 1.6rem;
  color: var(--dremoy-gray-900);
  margin: 0 0 4px;
}

.dremoy-login-card__sub {
  font-size: 0.82rem;
  color: var(--dremoy-gray-500);
  margin: 0;
}

/* ── Form area ── */
.dremoy-form {
  padding: 28px 36px 24px;
}

/* ── Form Field ── */
.dremoy-field {
  margin-bottom: 20px;
}

.dremoy-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dremoy-field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dremoy-gray-600);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

/* Wrapper holds icon + input + status */
.dremoy-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dremoy-field__icon {
  position: absolute;
  left: 15px !important; /* বর্ডার থেকে দূরত্ব */
  top: 50% !important;   /* একদম মাঝখানে আনবে */
  transform: translateY(-50%) !important; /* লম্বালম্বিভাবে সেন্টার করবে */
  color: var(--dremoy-gray-400);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 10;
}

.dremoy-field__input {
  width: 100%;
  padding: 11px 44px 12px 45px !important; /* বাম পাশে ৪৫ পিক্সেল প্যাডিং নিশ্চিত করুন */
  border: 1.5px solid var(--dremoy-border);
  border-radius: var(--dremoy-r-md);
  font-family: var(--dremoy-font);
  font-size: 0.88rem;
  color: var(--dremoy-gray-800);
  background: var(--dremoy-surface);
  outline: none;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dremoy-field__input::placeholder { color: var(--dremoy-gray-300); }

.dremoy-field__input:focus {
  border-color: var(--dremoy-blue-500);
  box-shadow: var(--dremoy-shadow-field);
}

.dremoy-field__input:focus + .dremoy-field__icon,
.dremoy-field__wrap:focus-within .dremoy-field__icon {
  color: var(--dremoy-blue-500);
}

/* Valid / invalid states */
.dremoy-field__wrap.is-valid .dremoy-field__input {
  border-color: var(--dremoy-success);
}

.dremoy-field__wrap.is-invalid .dremoy-field__input {
  border-color: var(--dremoy-danger);
}

/* Eye toggle (password) */
.dremoy-field__eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--dremoy-gray-400);
  cursor: pointer;
  padding: 4px;
  font-size: 0.82rem;
  border-radius: 4px;
  transition: color 0.2s;
  line-height: 1;
}

.dremoy-field__eye:hover { color: var(--dremoy-gray-700); }

/* Inline field error */
.dremoy-field__error {
  display: block;
  font-size: 0.73rem;
  color: var(--dremoy-danger);
  margin-top: 4px;
  min-height: 16px;
}

/* Forgot password link */
.dremoy-forgot-link {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--dremoy-blue-500);
  text-decoration: none;
  transition: color 0.2s;
}

.dremoy-forgot-link:hover { color: var(--dremoy-blue-700); text-decoration: underline; }

/* ── Remember Me ── */
.dremoy-remember-row {
  margin-bottom: 24px;
}

.dremoy-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.dremoy-checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.dremoy-checkbox__box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--dremoy-gray-300);
  border-radius: 5px;
  background: var(--dremoy-surface);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--dremoy-ease-spring);
  flex-shrink: 0;
}

.dremoy-checkbox__input:checked + .dremoy-checkbox__box {
  background: var(--dremoy-blue-500);
  border-color: var(--dremoy-blue-500);
}

.dremoy-checkbox__input:checked + .dremoy-checkbox__box::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(42deg) translateY(-1px);
  display: block;
}

.dremoy-checkbox__label {
  font-size: 0.83rem;
  color: var(--dremoy-gray-600);
  font-weight: 500;
}

/* ── Login Button ── */
.dremoy-btn-login {
  width: 100%;
  padding: 13px 24px;
  background: var(--dremoy-grad-primary);
  border: none;
  border-radius: var(--dremoy-r-md);
  color: #fff;
  font-family: var(--dremoy-font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--dremoy-shadow-btn);
  transition: transform 0.2s var(--dremoy-ease), box-shadow 0.2s;
}

/* Shine sweep on hover */
.dremoy-btn-login::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.dremoy-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.5);
}

.dremoy-btn-login:hover::before { left: 140%; }

.dremoy-btn-login:active { transform: translateY(0); }

.dremoy-btn-login__text { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dremoy-btn-login__loader { display: none; }

/* Loading state */
.dremoy-btn-login.is-loading .dremoy-btn-login__text { display: none; }
.dremoy-btn-login.is-loading .dremoy-btn-login__loader { display: block; }

/* ── Card Footer ── */
.dremoy-login-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: var(--dremoy-gray-50);
  border-top: 1px solid var(--dremoy-border);
  font-size: 0.72rem;
  color: var(--dremoy-gray-400);
}

.dremoy-version {
  font-family: var(--dremoy-font-mono);
  background: var(--dremoy-gray-200);
  padding: 2px 8px;
  border-radius: var(--dremoy-r-full);
  font-size: 0.68rem;
  color: var(--dremoy-gray-600);
  font-weight: 600;
}

/* Copyright text */
.dremoy-copyright {
  font-size: 0.72rem;
  color: var(--dremoy-gray-500);
  text-align: center;
}

.dremoy-copyright strong { color: var(--dremoy-gray-400); }

/* Message banners */
.dremoy-msg {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 36px;
  font-size: 0.82rem;
  font-weight: 500;
}

.dremoy-msg--error {
  background: #fef2f2; color: #b91c1c;
  border-top: 1px solid #fecaca;
  border-bottom: 1px solid #fecaca;
}

.dremoy-msg--success {
  background: #f0fdf4; color: #166534;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}

/* ════════════════════════════════════════════
   6. ANIMATIONS
════════════════════════════════════════════ */
@keyframes dremoy-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   7. RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .dremoy-login-shell {
    grid-template-columns: 1fr;
  }
  .dremoy-login-aside {
    display: none;
  }
  .dremoy-login-main {
    padding: 32px 20px;
    background: var(--dremoy-gray-900);
    min-height: 100vh;
  }
  .dremoy-login-card {
    box-shadow: var(--dremoy-shadow-card);
  }
}

@media (max-width: 440px) {
  .dremoy-form,
  .dremoy-login-card__header,
  .dremoy-login-card__footer { padding-left: 20px; padding-right: 20px; }
}
