/* -------------------------------------------------------
   Auth Pages — Login & Register
   Mirrors the field styling used in tax-filing.php
------------------------------------------------------- */

/* Card wrapper */
.tw-card {
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0px 4px 25px rgba(54, 167, 222, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}

.tw-card:hover {
  box-shadow: 0px 6px 35px rgba(54, 167, 222, 0.2);
}

/* Form controls */
.form-control,
.form-select {
  border: 1px solid #D1D3D4;
  border-radius: 8px;
  font-family: var(--font-body, 'Proxima Nova Light', sans-serif);
  transition: all 0.3s ease;
}

.form-control {
  background: #ffffff;
  color: #231F20;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 300;
}

.form-control:focus {
  border-color: #36A7DE;
  box-shadow: 0 0 0 0.2rem rgba(54, 167, 222, 0.15);
  color: #231F20;
  background: #ffffff;
}

/* Labels */
.form-label {
  color: #231F20;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  font-family: var(--font-subheading, 'Proxima Nova Bold', sans-serif);
}

/* Section heading — matching tw-step-title */
.auth-title {
  color: #22539F;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e9ecef;
}

.auth-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #36A7DE;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0px 4px 25px rgba(54, 167, 222, 0.15);
}

/* Primary button — matching .tw-btn-primary */
.btn.tw-btn-primary {
  position: relative;
  background-color: #22539F;
  color: #fff;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body, sans-serif);
  width: 100%;
}

.btn.tw-btn-primary::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100%;
  height: 100%;
  background-color: #D1D3D4;
  border-radius: 4px;
  z-index: -1;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}

.btn.tw-btn-primary:hover::after,
.btn.tw-btn-primary:focus::after {
  visibility: visible;
  opacity: 1;
}

.btn.tw-btn-primary:hover,
.btn.tw-btn-primary:focus {
  background-color: #1a3d73;
  color: #fff;
}

/* Error / info message */
.tw-alert-error {
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  padding: 12px 16px;
  color: #842029;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Password toggle button */
.pwd-toggle {
  background: #f8f9fa;
  border: 1px solid #D1D3D4;
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: #22539F;
  cursor: pointer;
  padding: 0 14px;
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1;
}

.pwd-toggle:hover {
  background: #e9ecef;
  color: #36A7DE;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
}

.input-group .form-control:focus {
  border-color: #36A7DE;
  box-shadow: 0 0 0 0.2rem rgba(54, 167, 222, 0.15);
  z-index: 1;
}

/* Auth link */
.auth-link-row {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #6c757d;
}

.auth-link-row a {
  color: #22539F;
  font-weight: 600;
  text-decoration: none;
}

.auth-link-row a:hover {
  color: #36A7DE;
  text-decoration: underline;
}
