:root {
  --bg: transparent;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db; /* optional */
  --text-light: #9ca3af;
  --text: #111827;
  --muted: #6b7280;
  --brand-soft: #eaf3ff;        /* Soft, light blue */
  --brand: #3f9cff;             /* Main brand color */
  --brand-strong: #0b3a82;      /* Strong blue for contrast */
  --brand-hover: #1e6fd0;       /* Slightly darker hover state */
  --brand-active: #1666c1;      /* Active state */
  --brand-button: #1d72d2;      /* Darker shade of the brand color */
  --shadow-form: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.icon-visibility {
  width: 21px;
  height: 21px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true' focusable='false'><path d='M 12,4.5 C 7,4.5 2.73,7.61 1,12 c 1.73,4.39 6,7.5 11,7.5 5,0 9.27,-3.11 11,-7.5 C 21.27,7.61 17,4.5 12,4.5 Z M 12,17 C 9.24,17 7,14.76 7,12 7,9.24 9.24,7 12,7 c 2.76,0 5,2.24 5,5 0,2.76 -2.24,5 -5,5 z m 0,-8 c -1.66,0 -3,1.34 -3,3 0,1.66 1.34,3 3,3 1.66,0 3,-1.34 3,-3 0,-1.66 -1.34,-3 -3,-3 z' fill='%236b7280'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.icon-visibility_off {
  width: 21px;
  height: 21px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true' focusable='false'><path d='m 12,7 c 2.76,0 5,2.24 5,5 0,0.65 -0.13,1.26 -0.36,1.83 l 2.92,2.92 c 1.51,-1.26 2.7,-2.89 3.43,-4.75 -1.73,-4.39 -6,-7.5 -11,-7.5 -1.4,0 -2.74,0.25 -3.98,0.7 l 2.16,2.16 C 10.74,7.13 11.35,7 12,7 Z M 2,4.27 4.28,6.55 4.74,7.01 C 3.08,8.3 1.78,10.02 1,12 c 1.73,4.39 6,7.5 11,7.5 1.55,0 3.03,-0.3 4.38,-0.84 L 16.8,19.08 19.73,22 21,20.73 3.27,3 Z M 7.53,9.8 9.08,11.35 C 9.03,11.56 9,11.78 9,12 c 0,1.66 1.34,3 3,3 0.22,0 0.44,-0.03 0.65,-0.08 l 1.55,1.55 C 13.53,16.8 12.79,17 12,17 9.24,17 7,14.76 7,12 7,11.21 7.2,10.47 7.53,9.8 Z m 4.31,-0.78 3.15,3.15 0.02,-0.16 c 0,-1.66 -1.34,-3 -3,-3 z' fill='%236b7280'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
}

header {
  position: absolute;
  top: 0;
  left: 0;
  height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  background:#fff;
  width: 100%;
}

header img { 
  height:34px; 
  cursor: pointer;
}

.icon-btn {
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid var(--border);
  background:#fff;
  color:#475569;
  cursor:pointer;
  transition:.12s ease;
  box-sizing:unset;
}

.icon-btn:hover {
  color:#0f172a;
  border-color:#cbd5e1;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 11px;
  right: 14px;
  display: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== CARD ===== */

.form-card {
  width: 100%;
  max-width: 420px;
  padding: 28px 26px 21px 26px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  /*box-shadow: var(--shadow-form);*/
}

.form-info {
    font-size: 0.85rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 20px;
}

/* ===== LOGO ===== */

.form-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  cursor: pointer;
}

.form-logo img {
  width: 96px;
  height: auto;
}

.form-footer {
  text-align: center;
  font-size: 15px;
  padding: 21px 0 0 0;
  color: var(--text);
}

.form-footer a {
 color: var(--brand-button);
}


/* ===== TITLE ===== */

h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
}

/* ===== FIELDS ===== */

.form-group,
.password-group {
  margin-bottom: 16px;
}

.password-group .link {
  float: right;
  font-weight: normal;
}

.password-group .link a {
  color: var(--brand-button);
}

.form-required {
   color: #ef4444;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.9rem;
}

input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* ===== PASSWORD ===== */

.password-wrap {
  position: relative;
}

.password-wrap .material-icons {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
}

/* ===== BUTTON ===== */

.form-actions {
  margin-top: 32px;
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: var(--brand-button);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  background: var(--brand-hover);
}

/* ===== OR DIVIDER ===== */

.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #6b7280; /* neutral gray */
  font-size: 0.85rem;
  font-weight: 500;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb; /* light divider */
}

.or-divider::before {
  margin-right: 12px;
}

.or-divider::after {
  margin-left: 12px;
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
  body {
    background: var(--bg);
    place-items: start;
    padding-top: 64px;
  }

  .form-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 20px;
    border-radius: 0;
   /* max-width: 100%;*/
  }

  .form-logo img {
    width: 96px;
  }

  input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.15rem;
  }

  button {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  
}

@media (max-width: 420px) {
  .form-card {
    padding: 24px 20px;
    border-radius: 14px;
  }
}