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

body {
  background: radial-gradient(circle at 20% 30%, #13294b, #041832 95%);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  line-height: 1.5;
}

/* ---------- COLOR THEME (exactly as requested) ---------- */
:root {
  --primary-deep: #243e7f;      /* dark blue */
  --white: #ffffff;
  --accent-bright: #049bd8;      /* vivid sky blue */
}

/* main card – uses white background, accents from theme */
.login-card {
  max-width: 1120px;
  width: 100%;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 40px 70px -15px #0a1a33, 0 0 0 1px rgba(4,155,216,0.2) inset;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transition: all 0.2s ease;
}

/* ---------- LEFT PANEL (deep blue gradient using #243e7f + #049bd8) ---------- */
.welcome-panel {
  background: linear-gradient(145deg, #1f3a72, #0e2b5c, #1e4c7a);
  /* also overlay touches of #049bd8 via pseudo */
  padding: 3.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  color: white;
  position: relative;
  isolation: isolate;
}

.welcome-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(4,155,216,0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* logo placeholder — beautifully integrated */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
}

.logo-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(4, 155, 216, 0.5);
  border-radius: 15px;
  padding: 0.6rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 16px -8px #00000040;
}

.logo-box i {
  font-size: 2rem;
  color: #049bd8;               /* accent bright */
  filter: drop-shadow(0 0 5px #049bd8);
}

.logo-box span {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.logo-box span small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #cce5ff;
  display: block;
  line-height: 1.2;
}

/* or if they want image placeholder — we also include an image-free variant,
   but the icon + text acts as a dummy logo. Additional real logo could go here */
.logo-placeholder-note {
  font-size: 11px;
  color: #aad0f0;
  margin-top: 4px;
  margin-left: 6px;
  letter-spacing: 0.2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.3rem 0.5rem 1rem;
  border-radius: 15px;
  width: fit-content;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 2rem;
  color: #f0f9ff;
  z-index: 2;
}

.badge i {
  color: #049bd8;               /* accent icon */
}

.welcome-panel h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.welcome-panel h2 span {
  color: #7ac8f5;               /* light variant of accent */
  border-bottom: 3px solid #049bd8;
  display: inline-block;
  padding-bottom: 4px;
}

.welcome-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 90%;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
  z-index: 2;
}

.testimonial-mini {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.4rem 1.8rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 2;
}

.testimonial-mini i {
  font-size: 2rem;
  color: #049bd8;
}

.testimonial-mini p {
  font-size: 13px;
  color: white;
  font-weight: 400;
}
.testimonial-mini strong {
  color: #dcf0ff;
  font-weight: 600;
  font-size: 13px;
}

/* ---------- RIGHT PANEL (light card, white, with accent touches) ---------- */
.form-panel {
  background: var(--white);
  padding: 3.2rem 3rem;
  display: flex;
  flex-direction: column;
}

.form-header {
  margin-bottom: 1.8rem;
}

.form-header h3 {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.3px;
  color: #243e7f;               /* primary deep blue */
}

.form-header p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3f607b;
  font-size: 13px;
  margin-top: 0.2rem;
}

.form-header p i {
  color: #049bd8;                /* bright accent */
}

/* ----- form elements (theme applied) ----- */
.form-group {
  margin-bottom: 1.6rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #243e7f;                /* deep blue */
  margin-bottom: 0.35rem;
  font-size: 13px;
}

.input-field {
  display: flex;
  align-items: center;
  background: #f4fafd;
  border: 1.5px solid #d0e5f2;
  border-radius: 15px;
  padding: 0.1rem 1rem 0.1rem 0.8rem;
  transition: all 0.2s;
}

.input-field:hover {
  border-color: #049bd8;          /* accent on hover */
  background: #ffffff;
}

.input-field:focus-within {
  border-color: #049bd8;
  box-shadow: 0 0 0 4px rgba(4, 155, 216, 0.15);
  background: #ffffff;
}

.input-field i {
  color: #5d89aa;
  font-size: 1rem;
  width: 1.8rem;
}

.input-field input,
.input-field select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.9rem 0.2rem 0.9rem 0;
  font-size: 13px;
  font-weight: 400;
  color: #13294b;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.input-field input::placeholder {
  color: #97b8d0;
  font-size: 13px;
}

.input-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23243e7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.1rem;
}

.field-hint {
  font-size: 13px;
  color: #7899b5;
  margin-top: 0.3rem;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.field-hint i {
  color: #049bd8;
}

/* action row */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 2rem 0;
}

.agree-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: #1d405a;
}

.agree-block input[type="checkbox"] {
  width: 12px;
  height: 12px;
  accent-color: #049bd8;         /* bright accent checkbox */
}

.forgot-link {
  color: #049bd8;                 /* bright accent link */
  text-decoration: none;
  font-weight: 500;
  font-size: 11px;
  border-bottom: 1px dashed #b0daf5;
}

.forgot-link:hover {
  color: #243e7f;                 /* deep blue on hover */
}

/* button uses theme colors */
.signin-btn {
  background: linear-gradient(105deg, #243e7f, #1b5c9e, #049bd8);
  border: none;
  color: white;
  font-weight: 600;
  font-size: 13px;
  padding: 1rem 1.8rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  cursor: pointer;
  box-shadow: 0 8px 28px -12px #0b293e;
  transition: all 0.2s ease;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.signin-btn i {
  font-size: 1rem;
  color: white;
}

.signin-btn:hover {
  background: linear-gradient(105deg, #1e3670, #1666a5, #0aa2e0);
  transform: scale(1.01);
}

/* terms footer */
.secure-note {
  font-size: 13px;
  color: #869fb8;
  text-align: center;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.secure-note i {
  color: #049bd8;
}

/* responsive */
@media (max-width: 780px) {
  .login-card { grid-template-columns: 1fr; max-width: 560px; }
  .welcome-panel { padding: 2.5rem 2rem; }
  .form-panel { padding: 2.5rem 2rem; }
}

.msg-box{
    margin-top:10px;
    margin-bottom: 20px !important;
    padding:12px 15px;
    border-radius:15px;
    font-size:14px;
    display:none;
    text-align:center;
}

.msg-error{
    background:#ffe9e9;
    color:#c40000;
    border:1px solid #ffb3b3;
}

.msg-success{
    background:#e6f7ff;
    color:#005c99;
    border:1px solid #8fd3ff;
}

.msg-loading{
    background:#eef6ff;
    color:#0b5ed7;
    border:1px solid #b6d4fe;
}