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

:root{
  --o:#841d39;
  --o2:#a13a5c;
  --od:#63122b;
  --ob:#520e1f;
  
  --navy:#FAFAFA;
  --cream:#ffffff;
  --white:#fff;
  
  --text:#1f2937;
  --muted:#6b7280;
  --light:#f3f4f6;
  --border:#e5e7eb;
  --success:#22c55e;
  --error:#ef4444;
  
  --r:16px;
  --r2:20px;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-o: 0 10px 25px rgba(132, 29, 57, 0.25);
}

html{scroll-behavior:smooth}
body{
  font-family:'Inter', sans-serif;
  background:var(--navy);
  color:var(--text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  -webkit-font-smoothing:antialiased;
}

.navbar{
  position:sticky;top:0;z-index:500;
  width:100%;
  height:60px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 20px;
  background: linear-gradient(135deg, #7c0032 0%, #a13a5c 100%);
  box-shadow:0 4px 20px rgba(132, 29, 57, 0.2);
  overflow:hidden;
}
.navbar::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.08) 50%,transparent 60%);
  animation:shim 4s 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:'Inter',sans-serif;
  font-weight:800;
  font-size:16px;
  letter-spacing:-.3px;
}
.nav-right{display:flex;align-items:center;gap:12px;position:relative;z-index:1}

.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,.22)}
.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:#ff3b30;border-radius:50%;
  animation:blink 2s infinite;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.5}}

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

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

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

.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:40px;
  width:auto;
}
.card-logo-text{
  font-family:'Inter',sans-serif;
  font-weight:800;
  font-size:18px;
  color:var(--o);
}
.card-header h1{
  font-family:'Inter',sans-serif;
  font-size:22px;
  font-weight:800;
  color:var(--text);
  margin-bottom:6px;
}
.card-header p{
  color:var(--muted);
  font-size:14px;
}

.field{margin-bottom:20px;position:relative}
.field label{
  display:block;font-family:'Inter',sans-serif;
  font-size:12px;font-weight:700;
  color:#4b5563;
  margin-bottom:8px;
  letter-spacing:.3px;
}
.field-wrap{position:relative}
.field-icon{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  pointer-events:none;
}
.field-icon svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

input{
  width:100%;
  padding:15px 15px 15px 46px;
  border-radius:12px;
  border:1.5px solid var(--border);
  background:#fff;
  font-family:'Inter',sans-serif;
  font-size:15px;
  color:var(--text);
  transition:all .22s;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.02);
}
input::placeholder{color:#b0a89e;font-family:'Inter',sans-serif;}
input:hover{border-color:#d1d5db}
input:focus{
  outline:none;
  border-color:var(--o);
  box-shadow:0 0 0 4px rgba(132, 29, 57, 0.1),inset 0 1px 2px rgba(0,0,0,.02);
  background:#fffcf9;
}

.field-eye{
  position:absolute;right:16px;top:50%;transform:translateY(-50%);
  cursor:pointer;
  padding:4px;
}
.field-eye svg{width:20px;height:20px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .2s}
.field-eye:hover svg{stroke:var(--o)}

.forgot-link{
  text-align:right;
  margin-bottom:24px;
}
.forgot-link a{
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:600;
  color:var(--o);
  text-decoration:none;
  transition:color .2s;
}
.forgot-link a:hover{color:var(--od)}

.login-btn{
  width:100%;
  padding:16px;
  font-family:'Inter',sans-serif;font-size:15px;font-weight:700;
  border:none;border-radius:12px;
  color:#fff;cursor:pointer;
  background: linear-gradient(135deg, var(--o2), var(--od));
  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 30px rgba(132, 29, 57, 0.35)}
.login-btn:active{transform:scale(.98)}
.login-btn svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

.signup-section{
  text-align:center;
  margin-top:24px;
  padding-top:24px;
  border-top:1px solid var(--border);
}
.signup-section p{
  color:var(--muted);
  font-size:14px;
  margin-bottom:12px;
}
.apply-btn{
  display:inline-flex;
  align-items:center;justify-content:center;gap:8px;
  background:transparent;
  border:2px solid var(--o);
  border-radius:12px;
  padding:13px 32px;
  font-family:'Inter',sans-serif;
  font-size:14px;
  font-weight:700;
  color:var(--o);
  cursor:pointer;
  text-decoration:none;
  transition:all .22s;
}
.apply-btn:hover{
  background:rgba(132, 29, 57, 0.05);
  transform:translateY(-1px);
}
.apply-btn svg{width:16px;height:16px;stroke:var(--o);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

.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(--success);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.security-badge span{
  font-size:12px;
  color:var(--muted);
  font-weight: 500;
}

.error-card{
  width:100%;
  max-width:420px;
  background:var(--white);
  border-radius:var(--r2);
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  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(239,68,68,.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(--error);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.error-card h1{
  font-family:'Inter',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:#f3f4f6;
  border-radius:8px;
  padding:12px 20px;
  display:inline-block;
  margin-bottom:24px;
}
.email-box span{
  color:var(--text);
  font-size:15px;
  font-family:'Inter',sans-serif;
  font-weight:600;
}

.info-box{
  background:#fff1f2;
  border:1px solid #fecdd3;
  border-radius:12px;
  padding:16px;
  margin-bottom:24px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  text-align:left;
}
.info-box svg{
  width:22px;height:22px;
  stroke:var(--o);
  fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  flex-shrink:0;
  margin-top:2px;
}
.info-box p{
  color:var(--od);
  font-size:13px;
  line-height:1.6;
}

.signup-btn{
  width:100%;
  padding:16px;
  font-family:'Inter',sans-serif;font-size:15px;font-weight:700;
  border:none;border-radius:12px;
  color:#fff;cursor:pointer;
  background: linear-gradient(135deg, var(--o2), var(--od));
  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 30px rgba(132, 29, 57, 0.35);
}
.signup-btn svg{width:18px;height:18px;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:'Inter',sans-serif;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  transition:color .2s;
}
.try-different:hover{color:var(--o)}
.try-different svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

#loader{
  display:none;position:fixed;inset:0;z-index:9999;
  background:rgba(255,255,255,.95);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:70px;height:70px;
  border-radius:50%;
  background:linear-gradient(135deg,#841d39,#a13a5c);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 0 rgba(132, 29, 57, 0.4);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(132, 29, 57, 0.4)}50%{box-shadow:0 0 0 16px rgba(132, 29, 57, 0)}}
.loader-icon svg{width:32px;height:32px;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:'Inter',sans-serif;font-size:18px;font-weight:700;
  color:var(--text);
}
.loader-sub{font-size:14px;color:var(--muted)}
.progress-track{
  width:280px;height:6px;
  background:var(--border);border-radius:20px;
  overflow:hidden;
}
.progress-fill{
  height:100%;width:0%;
  background:linear-gradient(90deg,#841d39,#a13a5c);
  border-radius:20px;
  box-shadow:0 0 10px rgba(132, 29, 57, 0.5);
  transition:width .04s linear;
}

.hidden{display:none !important}

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