*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}

:root{
  /* Premium Purple & Orange Theme */
  --purple:#42235F;
  --purple-dark:#3B2057;
  --purple-soft:#E8D8F5;
  --purple-gradient:#F6C7E9;
  --orange:#D94A18;
  --orange-dark:#B93D12;
  --orange-light:#F06A30;
  
  /* Background & Surfaces */
  --white:#FFFFFF;
  --surface-soft:#F6F4FA;
  --bg-light:#FAF8FC;
  --cream:var(--surface-soft);
  --light:#F6F4FA;
  
  /* Typography */
  --text:#1A1A2E;
  --text-primary:#1A1A2E;
  --text-secondary:#5A5A6E;
  --muted:#8A8A9E;
  
  /* Effects */
  --border:#E8E0F0;
  --shadow:0 8px 28px rgba(66,35,95,0.12);
  --shadow-o:0 8px 32px rgba(217,74,24,0.3);
  
  --success:#22c55e;
  --error:#ef4444;
  --r:16px;
  --r2:20px;
  
  --o:var(--orange);
  --o2:var(--orange-light);
  --od:var(--orange-dark);
  --ob:var(--purple-dark);
  --navy:var(--purple-dark);
}

html{scroll-behavior:smooth}
body{
  font-family:'DM Sans',sans-serif;
  background:linear-gradient(135deg,var(--surface-soft) 0%,#F0EBF5 100%);
  color:var(--text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  -webkit-font-smoothing:antialiased;
}

/* ── NAVBAR ── */
.navbar{
  position:sticky;top:0;z-index:500;
  width:100%;
  height:58px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 18px;
  background:linear-gradient(135deg,var(--purple) 0%,var(--purple-dark) 100%);
  box-shadow:0 2px 20px rgba(66,35,95,0.28);
  overflow:hidden;
}
.navbar::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.08) 50%,transparent 70%);
  animation:shim 3.5s ease-in-out infinite;
}
@keyframes shim{0%{transform:translateX(-150%)}100%{transform:translateX(200%)}}
.nav-logo{display:flex;align-items:center;gap:10px;position:relative;z-index:1;text-decoration:none}
.nav-logo img{height:32px;width:auto;object-fit:contain}
.nav-logo-text{
  color:#fff;
  font-family:'Sora',sans-serif;
  font-weight:800;
  font-size:15px;
  letter-spacing:-.3px;
}
.nav-right{display:flex;align-items:center;gap:12px;position:relative;z-index:1}

/* Bell Icon */
.bell-btn{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  width:40px;height:40px;
  border-radius:50%;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  position:relative;transition:background .2s;
}
.bell-btn:hover{background:rgba(255,255,255,.2)}
.bell-btn svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bell-dot{
  position:absolute;top:7px;right:7px;
  width:8px;height:8px;
  background:var(--orange);border-radius:50%;
  animation:blink 2s infinite;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.5}}

/* Login Button */
.nav-login{
  display:flex;align-items:center;gap:6px;
  background:var(--white);
  border:none;
  border-radius:50px;padding:8px 18px;
  color:var(--orange);font-family:'Sora',sans-serif;font-size:12px;font-weight:700;
  cursor:pointer;text-decoration:none;
  transition:all .2s;
  box-shadow:0 2px 12px rgba(0,0,0,.15);
}
.nav-login:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 16px rgba(0,0,0,.2);
  background:var(--orange);
  color:#fff;
}
.nav-login:hover svg{stroke:#fff;}
.nav-login svg{width:14px;height:14px;stroke:var(--orange);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

/* ── MAIN CONTENT ── */
.main-content{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  width:100%;
}

/* ── LOGIN CARD ── */
.login-card{
  width:100%;
  max-width:420px;
  background:var(--white);
  border-radius:var(--r2);
  box-shadow:var(--shadow);
  border:1px solid rgba(66,35,95,0.08);
  padding:36px 32px;
  animation:fadeUp .45s cubic-bezier(.4,0,.2,1) both;
}
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* Card Header */
.card-header{
  text-align:center;
  margin-bottom:32px;
}
.card-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-bottom:16px;
}
.card-logo img{
  height:36px;
  width:auto;
}
.card-logo-text{
  font-family:'Sora',sans-serif;
  font-weight:800;
  font-size:18px;
  color:var(--orange);
}
.card-header h1{
  font-family:'Sora',sans-serif;
  font-size:22px;
  font-weight:800;
  color:var(--text);
  margin-bottom:6px;
}
.card-header p{
  color:var(--muted);
  font-size:13px;
}

/* ── FIELDS ── */
.field{margin-bottom:18px;position:relative}
.field label{
  display:block;font-family:'Sora',sans-serif;
  font-size:11.5px;font-weight:700;
  color:#444;
  margin-bottom:6px;
  letter-spacing:.3px;
}
.field-wrap{position:relative}
.field-icon{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  pointer-events:none;
}
.field-icon svg{width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

input{
  width:100%;
  padding:14px 14px 14px 42px;
  border-radius:var(--r);
  border:1.5px solid rgba(66,35,95,0.12);
  background:#fff;
  font-family:'DM Sans',sans-serif;
  font-size:14.5px;
  color:var(--text);
  transition:all .22s;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.04);
}
input::placeholder{color:#b0a89e}
input:hover{border-color:var(--orange);}
input:focus{
  outline:none;
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(217,74,24,0.14),inset 0 1px 2px rgba(0,0,0,.04);
  background:#fffcf9;
}

/* Password Field with Eye Icon */
.field-eye{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  cursor:pointer;
  padding:4px;
}
.field-eye svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .2s}
.field-eye:hover svg{stroke:var(--orange)}

/* Forgot Password */
.forgot-link{
  text-align:right;
  margin-bottom:20px;
}
.forgot-link a{
  font-family:'Sora',sans-serif;
  font-size:12px;
  font-weight:600;
  color:var(--orange);
  text-decoration:none;
  transition:color .2s;
}
.forgot-link a:hover{color:var(--orange-dark)}

/* ── LOGIN BUTTON ── */
.login-btn{
  width:100%;
  padding:15px;
  font-family:'Sora',sans-serif;font-size:15px;font-weight:700;
  border:none;border-radius:var(--r);
  color:#fff;cursor:pointer;
  background:linear-gradient(135deg,var(--orange),var(--orange-dark));
  box-shadow:var(--shadow-o);
  transition:all .22s;
  display:flex;align-items:center;justify-content:center;gap:8px;
  letter-spacing:.3px;
  position:relative;overflow:hidden;
  text-decoration:none;
}
.login-btn::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.2),transparent 70%);
  transform:translateX(-150%);
}
.login-btn:hover::after{transform:translateX(150%);transition:transform .6s}
.login-btn:hover{transform:translateY(-2px);box-shadow:0 12px 36px rgba(217,74,24,0.4)}
.login-btn:active{transform:scale(.98)}
.login-btn svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

/* ── SIGNUP SECTION ── */
.signup-section{
  text-align:center;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid rgba(66,35,95,0.08);
}
.signup-section p{
  color:var(--muted);
  font-size:13px;
  margin-bottom:12px;
}
.apply-btn{
  display:inline-flex;
  align-items:center;justify-content:center;gap:6px;
  background:transparent;
  border:2px solid var(--orange);
  border-radius:var(--r);
  padding:12px 32px;
  font-family:'Sora',sans-serif;
  font-size:14px;
  font-weight:700;
  color:var(--orange);
  cursor:pointer;
  text-decoration:none;
  transition:all .22s;
}
.apply-btn:hover{
  background:rgba(217,74,24,.08);
  transform:translateY(-1px);
  border-color:var(--orange-dark);
  color:var(--orange-dark);
}
.apply-btn svg{width:16px;height:16px;stroke:var(--orange);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.apply-btn:hover svg{stroke:var(--orange-dark);}

/* ── SECURITY BADGE ── */
.security-badge{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:24px;
  padding-top:16px;
}
.security-badge svg{width:14px;height:14px;stroke:var(--orange);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.security-badge span{
  font-size:11px;
  color:var(--muted);
}

/* ── ERROR CARD (User Not Registered) ── */
.error-card{
  width:100%;
  max-width:420px;
  background:var(--white);
  border-radius:var(--r2);
  box-shadow:var(--shadow);
  border:1px solid rgba(66,35,95,0.08);
  padding:40px 32px;
  animation:fadeUp .45s cubic-bezier(.4,0,.2,1) both;
  text-align:center;
}

.error-icon-box{
  width:80px;height:80px;
  background:rgba(217,74,24,.1);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 24px;
}
.error-icon-box svg{width:40px;height:40px;stroke:var(--orange);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.error-card h1{
  font-family:'Sora',sans-serif;
  font-size:22px;
  font-weight:800;
  color:var(--text);
  margin-bottom:8px;
}

.error-card .subtitle{
  color:var(--muted);
  font-size:14px;
  margin-bottom:12px;
}

.email-box{
  background:linear-gradient(135deg,var(--purple-soft) 0%,#F0EBF5 100%);
  border-radius:8px;
  padding:10px 16px;
  display:inline-block;
  margin-bottom:24px;
}
.email-box span{
  color:var(--purple);
  font-size:14px;
  font-family:'DM Sans',sans-serif;
  font-weight:600;
}

.info-box{
  background:rgba(217,74,24,.06);
  border:1px solid rgba(217,74,24,.2);
  border-radius:12px;
  padding:16px;
  margin-bottom:24px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  text-align:left;
}
.info-box svg{
  width:20px;height:20px;
  stroke:var(--orange);fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  flex-shrink:0;
  margin-top:2px;
}
.info-box p{
  color:var(--orange-dark);
  font-size:13px;
  line-height:1.5;
}

.signup-btn{
  width:100%;
  padding:15px;
  font-family:'Sora',sans-serif;font-size:15px;font-weight:700;
  border:none;border-radius:var(--r);
  color:#fff;cursor:pointer;
  background:linear-gradient(135deg,var(--orange),var(--orange-dark));
  box-shadow:var(--shadow-o);
  transition:all .22s;
  display:flex;align-items:center;justify-content:center;gap:8px;
  letter-spacing:.3px;
  text-decoration:none;
  margin-bottom:16px;
}
.signup-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 36px rgba(217,74,24,0.4);
}
.signup-btn svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

.try-different{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-family:'Sora',sans-serif;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  transition:color .2s;
}
.try-different:hover{color:var(--orange)}
.try-different svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ── LOADER OVERLAY ── */
#loader{
  display:none;position:fixed;inset:0;z-index:9999;
  background:linear-gradient(135deg,var(--purple) 0%,var(--purple-dark) 100%);
  backdrop-filter:blur(8px);
  flex-direction:column;align-items:center;justify-content:center;gap:20px;
}
#loader.show{display:flex;animation:fadeIn .3s ease both}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.loader-icon{
  width:64px;height:64px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--orange),var(--orange-dark));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 0 rgba(217,74,24,.4);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(217,74,24,.4)}50%{box-shadow:0 0 0 16px rgba(217,74,24,0)}}
.loader-icon svg{width:28px;height:28px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.loader-title{
  font-family:'Sora',sans-serif;font-size:17px;font-weight:700;
  color:var(--white);
}
.loader-sub{font-size:12.5px;color:rgba(255,255,255,0.7)}
.progress-track{
  width:240px;height:6px;
  background:rgba(255,255,255,0.2);border-radius:20px;
  overflow:hidden;
}
.progress-fill{
  height:100%;width:0%;
  background:linear-gradient(90deg,var(--orange),var(--orange-light));
  border-radius:20px;
  box-shadow:0 0 10px rgba(217,74,24,.5);
  transition:width .04s linear;
}

.hidden{display:none !important}

/* ── RESPONSIVE ── */
@media(max-width:480px){
  .login-card,.error-card{padding:28px 20px}
  .card-header h1,.error-card h1{font-size:20px}
}