@charset "UTF-8";

html,
body,
#back {
  height: 100%;
}

body {
  background-color: var(--background_color_1);
}

#loginWindow {
  max-width: 300px;
  z-index: 1300;
  text-align: center;
}

.modalImage {
  max-height: 150px;
  margin-bottom: 10px;
}

button.red {
  color: #fff;
  background-color: brown;
  border-color: darkred;
}

button.red:hover {
  background-color: darkred;
  color: white;
}

p.snssetting {
  width: 100%;
  margin-top: 7px;
  margin-bottom: -7px;
}

div.settingBlock {
  border: 1px solid gainsboro;
  padding: 10px;
}

.login_header {
  padding: 15px 20px;
  background: none;
  border: none;
}

.login_footer {
  padding: 15px 20px;
  background: none;
  border: none;
}

.login_footer p {
  text-align: right;
}

.container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login_form {
  margin-bottom: 50px;
}

.login_form hr {
  border-color: #e2e2e2;
  width: 50%;
}

.login_form .user_icon_warp {
  display: flex;
  justify-content: center;
}

.login_form .user_icon_warp .user_icon {
  width: 100px;
  height: 100px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background-color: #FFFFFF;
  box-shadow: var(--outside_shadow_2);
  -webkit-box-shadow: var(--outside_shadow_2);
}

.login_form .user_icon_warp .user_icon i {
  font-size: 100px;
  color: #3097D1;
  font-size: 94px;
  margin-top: -2px;
  background-color: #FFFFFF;
}

.login_form .user_icon_warp .user_icon .user_icon_img {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #FFFFFF;
}

.login_form .panel {
  border: none;
  background: none;
  box-shadow: none;
  margin: 0;
  padding-bottom: 20px;
}

.login_form .panel-default>.panel-heading {
  border: none;
  background: none;
  text-align: center;
  color: #808080;
}

.login_form .input-group {
  box-shadow: var(--outside_shadow_2);
  -webkit-box-shadow: var(--outside_shadow_2);
  padding: 0;
  margin: 0;
  background-color: #ffffff;
  display: block;
}

.login_form .input-group .input-group-addon {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0px 0px 0 35px;
  font-size: 26px;
  color: var(--color_1);
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  display: flex;
  height: 70px;
  justify-content: center;
  align-items: center;
  padding-left: 35px;
}

.login_form .input-group .input-group-addon i {
  width: 25px;
}

.login_form .input-group input {
  text-indent: 50px;
  color: var(--color_1);
  font-size: 20px;
}

.login_form .form-control {
  box-shadow: var(--outside_shadow_2);
  -webkit-box-shadow: var(--outside_shadow_2);
  border: none;
  height: 70px;
  border-radius: 0;
}

.login_form .btn-primary {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  box-shadow: var(--outside_shadow_2);
  -webkit-box-shadow: var(--outside_shadow_2);
}

.login_form .getPassword {
  font-weight: 200;
  color: #4d99cc;
  text-align: right;
  margin-bottom: 15px;
}

.login_form .getPassword a {
  color: #000;
  border-bottom: 1px solid;
}

.login_form .getPassword a span {
  color: #c7254e;
}

.login_form .getPassword a:hover {
  text-decoration: none;
}

.login_form.islogin .input-group.email {
  background: none;
  box-shadow: none;
  position: relative;
}

.login_form.islogin .input-group.email .input-group-addon {
  padding-left: 20px;
  font-size: 30px;
}

.login_form.islogin .input-group.email .input-group-addon i {
  width: 35px;
  font-size: 35px;
}

.login_form.islogin .input-group.email .input_email {
  height: 70px;
  line-height: 70px;
  font-size: 35px;
  text-indent: 45px;
  pointer-events: none;
}

.login_form.islogin button.close {
  opacity: 1;
  position: absolute;
  right: 0;
  color: #ff4d4d;
  top: 0;
  width: 25px;
  height: 25px;
  font-size: 28px;
  background: none;
  transform: rotate(45deg);
}

.footer {
  padding: 0 10px;
  height: 50px;
  line-height: 50px;
}

.footer p {
  text-align: right;
}

@media (min-width: 768px) {
  .form-horizontal .control-label {
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .login_body.container {
    margin-bottom: 0;
  }
}

.errorMes {
  color: #ff4d4d;
  font-size: 14px;
  font-weight: bold;
}

#registerForm .input-label {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ========================================
   MFA Authentication Form Styles
   ======================================== */

.mfa-container {
  animation: mfaFadeIn 0.4s ease-out;
}

@keyframes mfaFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mfa-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.mfa-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3097D1 0%, #1a6fa8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(48, 151, 209, 0.3);
  position: relative;
  overflow: hidden;
}

.mfa-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: mfaShimmer 3s infinite;
}

@keyframes mfaShimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.mfa-icon i {
  font-size: 36px;
  color: #fff;
  z-index: 1;
}

.mfa-header {
  text-align: center;
  margin-bottom: 24px;
}

.mfa-title {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin: 16px 0 8px;
  letter-spacing: 0.5px;
}

.mfa-description {
  color: #6c7a89;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.mfa-description strong {
  color: #3097D1;
  font-weight: 600;
}

/* Single Input Field */
.mfa-input-wrapper {
  margin: 24px 0;
}

.mfa-input-group {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.mfa-input-group:focus-within {
  border-color: #3097D1;
  box-shadow: 0 0 0 4px rgba(48, 151, 209, 0.15);
}

.mfa-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #3097D1;
  font-size: 18px;
}

.mfa-single-input {
  flex: 1;
  height: 50px;
  border: none;
  outline: none;
  font-size: 18px;
  color: #2c3e50;
  padding: 0 16px 0 0;
  background: transparent;
}

.mfa-single-input::placeholder {
  color: #a0adb8;
}

.mfa-single-input.error {
  color: #e74c3c;
}

.mfa-input-group:has(.mfa-single-input.error) {
  border-color: #e74c3c;
  background: #fef5f5;
}

.mfa-single-input.success {
  color: #27ae60;
}

.mfa-input-group:has(.mfa-single-input.success) {
  border-color: #27ae60;
  background: #f5fef8;
}

/* Error message */
.mfa-error {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef5f5 0%, #fff 100%);
  border: 1px solid #f8d7da;
  border-radius: 8px;
  color: #c0392b;
  font-size: 14px;
  margin-bottom: 20px;
  animation: mfaFadeIn 0.3s ease;
}

.mfa-error.show {
  display: flex;
}

.mfa-error i {
  font-size: 16px;
}

/* Submit button */
.mfa-submit-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3097D1 0%, #2680b8 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(48, 151, 209, 0.35);
  position: relative;
  overflow: hidden;
}

.mfa-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(48, 151, 209, 0.45);
}

.mfa-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.mfa-submit-btn:disabled {
  background: #a0c4d8;
  cursor: not-allowed;
  box-shadow: none;
}

.mfa-submit-btn .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.mfa-submit-btn.loading .btn-text {
  opacity: 0;
}

.mfa-submit-btn .btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: none;
}

.mfa-submit-btn.loading .btn-spinner {
  opacity: 1;
  animation: mfaSpin 0.8s linear infinite;
}

@keyframes mfaSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Back link */
.mfa-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px;
  color: #6c7a89;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mfa-back-link:hover {
  color: #3097D1;
  background: rgba(48, 151, 209, 0.08);
}

.mfa-back-link i {
  transition: transform 0.2s ease;
}

.mfa-back-link:hover i {
  transform: translateX(-3px);
}

/* Resend code link */
.mfa-resend {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eef2f5;
}

.mfa-resend-text {
  color: #8c9bab;
  font-size: 13px;
  margin-bottom: 8px;
}

.mfa-resend-link {
  color: #3097D1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.mfa-resend-link:hover {
  color: #1a6fa8;
  text-decoration: underline;
}

.mfa-resend-link.disabled {
  color: #a0adb8;
  pointer-events: none;
}

/* Timer badge */
.mfa-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f0f4f7;
  border-radius: 20px;
  font-size: 12px;
  color: #6c7a89;
  margin-left: 8px;
}

.mfa-timer i {
  font-size: 11px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mfa-code-group {
    gap: 6px;
  }

  .mfa-code-input {
    width: 42px;
    height: 52px;
    font-size: 22px;
    border-radius: 10px;
  }

  .mfa-title {
    font-size: 20px;
  }

  .mfa-icon {
    width: 70px;
    height: 70px;
  }

  .mfa-icon i {
    font-size: 30px;
  }
}
