* {
  box-sizing: border-box;
}
body {
  font-family: system-ui, sans-serif;
  background: #2E2F71;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  margin: 0;
}
body .container.edit-mode {
  height: 400px !important;
}

.container {
  background: white;
  max-width: 400px;
  width: 100%;
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.logo {
  text-align: center;
  margin-bottom: 25px;
}
.logo img {
  height: 52px;
}
.logo h2 {
  font-size: 24px;
  margin: 10px 0 5px;
  padding-top: 15px;
  font-weight: 250;
}
.logo p {
  color: #555;
  font-size: 14px;
}

/* login */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: black;
    font-size: 18px;
    pointer-events: auto;
    z-index: 1;
}
.input-wrap {
  position: relative;
  margin-bottom: 15px;
}
.input-wrap input {
  width: 100%;
  padding: 16px 12px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
  background: none;
  transition: border-color 0.2s ease;
  height: 48px;
}
.input-wrap input:focus {
  border-color: #2E2F71;
}
.input-wrap label {
  position: absolute;
  top: 14px;
  left: 12px;
  font-size: 16px;
  color: #757575;
  transition: all 0.2s ease;
  background: white;
  padding: 0 4px;
}
.input-wrap input:focus + label,
.input-wrap input.filled + label {
  top: -9px;
  left: 10px;
  font-size: 14px;
  color: #2E2F71;
}
.input-wrap input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Error styling */
.input-wrap input.error {
  border-color: #d93025;
  border-width: 1px;
}
.input-wrap input.error + label {
  color: #d93025;
}
.error-msg {
  
  color: #d93025;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 300;
}
.global-error {
  background-color: #fdecea;
  border: 1px solid #d93025;
  color: #d93025;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 12px 12px 40px;
  border-radius: 6px;
  margin-top: -5px;
  margin-bottom: 20px;
  position: relative;

  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.667A6.667 6.667 0 1 0 8 1.333a6.667 6.667 0 0 0 0 13.334z' fill='%23D00E17' stroke='%23D00E17' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 4.583a.75.75 0 0 1 .75.75V8a.75.75 0 0 1-1.5 0V5.333a.75.75 0 0 1 .75-.75z' fill='%23fff'/%3E%3Cpath d='M8.667 10.667a.667.667 0 1 1-1.334 0 .667.667 0 0 1 1.334 0z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px 13px;
  background-size: 16px 16px;
}
.inline-error-icon {
  display: inline-block;
  vertical-align: text-bottom;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.667A6.667 6.667 0 1 0 8 1.333a6.667 6.667 0 0 0 0 13.334z' fill='%23D00E17' stroke='%23D00E17' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 4.583a.75.75 0 0 1 .75.75V8a.75.75 0 0 1-1.5 0V5.333a.75.75 0 0 1 .75-.75z' fill='%23fff'/%3E%3Cpath d='M8.667 10.667a.667.667 0 1 1-1.334 0 .667.667 0 0 1 1.334 0z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hidden {
  display: none;
}

/* Captcha image */
.captcha-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  border-radius: 3px;
  padding-top: 32px;
  padding-bottom: 32px;
}
#captchaImage {
  max-width: 80%;
  max-height: 50px;
  display: flex;    
}
#refreshCaptcha {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Submit button */
button[type="submit"] {
  width: 100%;
  background: #232378;
  color: white;
  padding: 14px;
  font-size: 16px;
  font-weight: 250;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.email-editable {
  position: relative;
  display: flex;
  align-items: center;
}

.email-editable input[type="email"] {
  flex: 1;
  padding-right: 50px;
  border: 1px solid #ccc;
}

#editEmailBtn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: bold;
  color: #2E2F71;
  cursor: pointer;
  user-select: none;
  padding: 0;
  text-decoration: none;
}
  
.resend-text {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #333;
}

.resend-text #resendCode {
  color: #232378;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  border: 2px solid #fff;
  border-top: 2px solid #555;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}