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

:root {
  --ink: #12203D;
  --navy-dark: #0A1324;
  --card-bg: #ffffff;
  --line: #E2E8F0;
  --muted: #5B6B8C;
  --primary: #12203D;
  --primary-hover: #1E345F;
  --accent: #FF6A1A;
  --green: #14845A;
  --green-bg: #EAF7EE;
  --red: #D92D20;
  --red-bg: #FEF3F2;
  --radius: 14px;
}

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: #F1F4F9;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  box-shadow: 0 20px 40px -15px rgba(18, 32, 61, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-logo {
  display: block;
  margin: 0 auto 0.75rem;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--ink);
}

.brand-title span {
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--muted);
  font-size: 0.8em;
}

.brand-subtitle {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.security-badge svg {
  color: var(--green);
}

.field {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 32, 61, 0.12);
}

.alert-box {
  background: var(--red-bg);
  border: 1px solid #FECDCA;
  color: var(--red);
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.submit-btn {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background 0.15s ease, transform 0.05s ease;
}

.submit-btn:hover {
  background: var(--primary-hover);
}

.submit-btn:active {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Success Screen */
.success-screen {
  text-align: center;
  padding: 1rem 0;
}

.check-circle {
  width: 64px;
  height: 64px;
  background: var(--green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 20px -5px rgba(20, 132, 90, 0.4);
}

.success-screen h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.success-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.loader-bar {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.loader-progress {
  width: 100%;
  height: 100%;
  background: var(--green);
  animation: load 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

.continue-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.continue-btn:hover {
  background: var(--primary-hover);
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
