@charset "utf-8";

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    "Noto Sans KR",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

.color-main {
  color: #a0103b !important;
}

/* Login Container */
.login-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  gap: 30px;
  padding: 24px 24px 24px 30px;
  background-color: #000000;
}

/* Background Images */
.background-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 0;
  flex: 1;
  border-radius: 28px;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.bg-image.active {
  opacity: 1;
}

/* Login Panel */
.login-panel {
  position: relative;
  z-index: 1;
  margin-right: auto;
  background-color: rgba(255, 255, 255, 0.12);
  width: 550px;
  height: 100%;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}

/* Logo */
.logo-wrapper {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* Page Title */
.login-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.tab-button {
  flex: 1;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  background: transparent;
  border: none;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.tab-button:hover {
  opacity: 0.8;
}

.tab-button.active {
  opacity: 1;
  color: #ffffff;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.12);
}

/* Tab Content */
.tab-content-wrapper {
  overflow: hidden;
  flex: 1;
}

.tab-slider {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optional: direction-based animation style */
.tab-slider.slide-right {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.tab-slider.slide-left {
  transition: transform 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}

/* For smooth fade effect on panel changes (optional) */
.tab-panel {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tab-panel.active {
  opacity: 1;
}

.tab-panel {
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  overflow: auto;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group {
  width: 100%;
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.form-idpwbtn {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.form-input {
  width: 100%;
  padding: 18px 26px;
  font-size: 16px;
  border: none;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.form-input:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #8b0029;
}

.form-input::placeholder {
  color: #ffffff;
  opacity: 0.5;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: none;
  width: 120px;
  height: 120px;
  background: #8b0029;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: #6d0020;
}

.btn-login:active {
  transform: scale(0.98);
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-input {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 14px;
}

.checkbox-text:hover {
  font-weight: 500;
}

.certify-login-info {
  font-size: 14px;
  align-self: flex-end;
  margin-bottom: -4px;
}

.form-link {
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-link:hover {
  font-weight: 500;
}

/* Notice Text */
.notice-text {
  display: flex;
  word-break: keep-all;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 24px;
  margin-bottom: 20px;
}

.notice-text li {
  list-style: none;
  position: relative;
  padding-left: 10px;
}

.notice-text li:before {
  content: "⦁";
  position: absolute;
  left: 0;
}

/* Social Login Buttons */
.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  position: relative;
  width: 100%;
  height: 48px;
  border: none;
  padding-left: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-social:hover {
  opacity: 0.9;
}

.btn-social .icon {
  display: inline-block;
  width: 52px;
  height: 100%;
  align-self: flex-start;
  position: absolute;
  top: 0;
  left: 0;
}

.btn-naver {
  background: #1ec800;
  color: #fff;
}

.btn-kakao {
  background: #f5e901;
  color: #000;
}

.btn-biometric {
  background: #fff;
  color: #9a30ae;
  border: 1px solid #9a30ae;
}

.btn-biometric .icon {
  border-right: 1px solid #9a30ae;
}

.btn-bio-regist {
  background: #fff;
  color: #a0103b;
  border: 1px solid #a0103b;
}

.btn-bio-regist .icon {
  border-right: 1px solid #a0103b;
  margin-left: -1px;
}

.icon.naver {
  background: url("../images/logo-naver.svg") no-repeat center;
  border-right: 1px solid rgba(0, 0, 0, 1);
}

.icon.kakao {
  background: url("../images/logo-kakao.png") no-repeat center;
  background-size: 32px;
  border-right: 1px solid rgba(0, 0, 0, 1);
}

.icon.fingerprint {
  background: url("../images/icon-fingerprint.svg") no-repeat center;
  background-size: 32px;
  margin-left: -1px;
}

.icon.fingerprint1 {
  background:
    url(../images/ic-fingerprint.svg) no-repeat,
    url(../images/ic-pen.svg) no-repeat;
  background-size: 30px, 25px;
  background-position:
    8px 6px,
    22px 18px;
}

/* Help Link Wrapper */
.help-link-wrapper {
  text-align: right;
  margin-top: -16px;
}

.help-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* Certificate Buttons */
.cert-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.btn-cert {
  position: relative;
  width: 100%;
  height: 48px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-left: 50px;
  transition: all 0.3s ease;
}

.btn-cert-login {
  background: #8b0029;
  color: #fff;
}

.btn-cert-login:hover {
  background: #700b29;
}

.btn-cert-register {
  background: #fff;
  color: #1d1d1d;
}

.btn-cert-register:hover {
  background: #eeeeee;
}

.icon-lock {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 100%;
  border-right: 1px solid #000000;
  background: url(../images/icon-lock.png) no-repeat center;
}

.icon-user-reg {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 100%;
  border-right: 1px solid #1d1d1d;
  background: url(../images/icon-user-reg.png) no-repeat center;
}

/* Mobile Login Button */
.btn-mobile-login {
  flex: none;
  padding: 0 40px;
  width: auto;
  height: 52px;
  background-color: #8b0029;
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  line-height: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mobile-login:hover {
  background: #700b29;
  color: #fff;
}

/* Footer */
.login-footer {
  justify-content: center;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: calc(100% - 634px);
  background: rgba(17, 17, 17, 0.7);
  padding: 20px 32px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-logo img {
  width: 190px;
  height: auto;
  opacity: 0.8;
}

.footer-content {
  color: #fff;
  font-size: 12px;
  line-height: 1.8;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px 28px;
  margin-bottom: 16px;
}

.footer-copyright {
  margin-top: 8px;
}

/* Responsive Design */
@media screen and (max-width: 1600px) {
  .login-footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media screen and (max-width: 1200px) {
  .background-wrapper {
    width: calc(100% - 480px);
  }

  .login-footer {
    width: calc(100% - 564px);
    flex-direction: column;
  }

  .footer-info {
    grid-template-columns: auto;
  }

  .login-panel {
    width: 480px;
    padding: 24px 32px;
  }

  .logo {
    max-width: 300px;
  }

  .login-title {
    font-size: 26px;
  }

  .tab-button {
    font-size: 16px;
    padding: 10px 12px;
  }
}

/* Responsive Design */
@media screen and (max-width: 1000px) {
  html,
  body {
    height: auto;
  }

  .login-container {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .login-panel {
    width: 100%;
  }

  .background-wrapper {
    width: 0;
    height: 0;
  }

  .login-footer {
    position: static;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
}

@media screen and (max-width: 768px) {
  .login-panel {
    width: 100%;
    margin: 0;
    padding: 20px 24px;
    min-height: calc(100vh - 180px);
  }

  .logo {
    max-width: 250px;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .tab-navigation {
    margin-bottom: 24px;
    padding: 0;
    gap: 0;
  }

  .tab-button {
    font-size: 14px;
    padding: 10px 8px;
  }

  .tab-panel {
    padding: 0 8px;
  }

  .form-input {
    padding: 16px 24px;
    font-size: 15px;
  }

  .btn-login {
    width: 100%;
    height: 56px;
    margin-top: 0;
    border-radius: 3px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-social {
    font-size: 15px;
    height: 52px;
  }

  .btn-cert {
    font-size: 15px;
    height: 52px;
  }

  .form-idpwbtn {
    flex-direction: column;
  }

  .footer-logo img {
    width: 150px;
  }

  .footer-content {
    font-size: 11px;
  }

  .footer-info span {
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
  }
}

@media screen and (max-width: 480px) {
  .login-panel {
    padding: 16px 20px;
  }

  .logo {
    max-width: 200px;
  }

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

  .tab-button {
    font-size: 13px;
    padding: 8px 4px;
  }

  .form-input {
    padding: 14px 20px;
    font-size: 14px;
  }

  .btn-login {
    height: 52px;
    font-size: 16px;
  }

  .checkbox-text,
  .form-link {
    font-size: 13px;
  }

  .btn-social,
  .btn-cert {
    font-size: 14px;
    height: 48px;
  }

  .btn-mobile-login {
    font-size: 15px;
    height: 52px;
  }

  .footer-content {
    font-size: 10px;
  }

  .help-links {
    flex-wrap: wrap;
  }

  .otp-page .header-otp {
    flex-direction: column;
    gap: 0;
  }

  .otp-page .header-otp .divider-v {
    display: none;
  }

  .otp-page .title-main {
    display: none;
  }

  .otp-page .otp-modal-content {
    box-shadow: none;
  }

  .otp-page .modal-body.otp {
    padding: 16px 0px 16px;
  }
}

/* Modal Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  width: 530px;
  max-width: 90%;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  position: relative;
  background-color: #f8f0f2;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.modal-close {
  background: none;
  flex: none;
  border: none;
  font-size: 28px;
  font-weight: 700;
  color: #3f3f46;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20aria-hidden%3D%22true%22%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M6%2018L18%206M6%206l12%2012%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #000;
}

.modal-body {
  padding: 30px;
  flex: 1;
  overflow: auto;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
}

.otp-page {
  overflow: auto;
  color: #000000;
  display: flex;
  gap: 36px;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 40px;
}

.otp-page .title-main {
  position: relative;
  font-size: 28px;
  padding-bottom: 8px;
  font-weight: 500;
}

.otp-page .title-main:before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #000000;
}

.otp-page .title-main:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  border-bottom: 2px solid #000000;
}

.header-otp {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  background-color: #f8f0f2;
}

.header-otp .logo {
  width: 220px;
}

.header-otp h2 {
  color: #000000;
  font-size: 30px;
}

.header-otp .divider-v {
  display: block;
  border-left: 1px solid #bbbbbb;
  height: 26px;
  width: 1px;
}

.otp-modal-content {
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 800px;
}

.modal-form.google-otp-form [name="otpNumber"] {
  max-width: 500px;
  margin: 0 auto;
}

.modal-notice.otp {
  text-align: left;
}

.modal-body.otp {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 50px 30px;
  text-align: center;
}

.modal-title.otp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.otpbtn-wrap {
  padding: 20px 0;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 10px;
}

.otpbtn-wrap button {
  flex: 1;
}

.modal-description {
  font-size: 16px;
  color: #444;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-radio-group {
  display: flex;
  gap: 16px;
  padding: 5px 0 0 4px;
  align-items: center;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  position: relative;
  transition: all 0.3s ease;
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #a0103b;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox='0%200%2012%2012'%3E%3Ccircle%20cx='6'%20cy='6'%20r='4'%20fill='%23A0103B'%2F%3E%3C%2Fsvg%3E");
}

.radio-text {
  font-size: 15px;
  line-height: 1.3;
  color: #444;
  cursor: pointer;
  user-select: none;
}

.modal-input {
  width: 100%;
  padding: 14px 12px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  color: #3f3f46;
  transition: border-color 0.3s ease;
}

.modal-input:focus {
  outline: none;
  border-color: #8b0029;
  box-shadow: inset 0 0 0 1px #8b0029;
}

.modal-input::placeholder {
  color: #999;
}

.modal-notice {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-notice.qrcode {
  margin: 0;
  gap: 0px;
}

.modal-notice.qrcode li {
  color: #333;
  font-size: 17px;
}

.img-qrcode {
  margin: 16px auto 0;
  width: 240px;
}

.modal-notice li {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  position: relative;
  padding-left: 15px;
}

.modal-notice li:before {
  content: "⦁";
  content: "-";
  position: absolute;
  left: 0;
}

.modal-footer {
  padding: 20px 25px 25px 25px;
  text-align: center;
}

.btn-confirm {
  width: 150px;
  height: 40px;
  background: #a0103b;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.3s ease;
}

.btn-confirm:hover {
  background: #8b0029;
}

.btn-confirm:active {
  transform: scale(0.98);
}

.google-otp-regist {
  width: 150px;
  height: 40px;
  color: #a0103b;
  line-height: 40px;
  cursor: pointer;
  background-color: #f4f4f4;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid #a0103b;
  border-radius: 3px;
  vertical-align: middle;
}

.google-otp-regist:hover {
  color: #8b0029;
  border-color: #8b0029;
  background-color: #ffffff;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 16px 20px 20px 20px;
  }

  .btn-confirm,
  .google-otp-regist {
    width: 120px;
    height: 36px;
    font-size: 14px;
  }

  .form-radio-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .password-tab-group {
    max-height: 400px;
    overflow-y: auto;
  }

  .password-tabs-nav {
    flex-direction: column;
  }

  .password-tab-btn {
    width: 100%;
  }

  .otp-page {
    padding: 140px 20px 20px 20px;
    justify-content: start;
  }
}

/* Temporary Password Modal Specific Styles */
.password-tab-group {
  position: relative;
}

.password-tab {
  display: none;
}

.password-tab.active {
  display: block;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.password-tabs-nav {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.password-tab-btn {
  width: 100%;
  text-align: left;
  position: relative;
  font-size: 18px;
  font-weight: 500;
  color: #000;
  margin: 0 0 4px 0;
  padding: 15px 0 15px 26px;
  border: 0;
  background: transparent;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.password-tab-btn:before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1px solid #c5c5c5;
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

.password-tab-btn.active {
  border: 0;
}

.password-tab-btn.active:before {
  border-color: #a0103b;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox='0%200%2012%2012'%3E%3Ccircle%20cx='6'%20cy='6'%20r='4'%20fill='%23A0103B'%2F%3E%3C%2Fsvg%3E");
}

.modal-button-group {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 10px;
}

/* Naver Authentication Modal Styles */
.naver-modal-content {
  width: 720px;
  max-width: 90%;
}

.naver-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.naver-notice {
  margin: 16px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.naver-notice li {
  font-size: 14px;
  color: #a70638;
  padding-left: 15px;
  position: relative;
}

.naver-notice li:before {
  content: "-";
  position: absolute;
  left: 0;
}

.naver-form {
  margin-top: 24px;
}

.naver-form-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}

.naver-form-field {
  flex: 1;
}

.naver-form-field input {
  width: 100%;
  height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  color: #333;
}

.naver-form-field input:focus {
  outline: none;
  border-color: #8b0029;
  box-shadow: inset 0 0 0 1px #8b0029;
}

.naver-form-button {
  width: 20%;
}

.naver-form-button .btn-confirm {
  width: 100%;
  height: 50px;
  margin: 0;
}

/* Responsive Naver Modal */
@media screen and (max-width: 1024px) {
  .naver-modal-content {
    width: 95%;
  }

  .naver-form-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .naver-form-field {
    width: 100%;
  }

  .naver-form-button {
    width: 100%;
  }

  .naver-form-button .btn-confirm {
    height: 44px;
  }
}

/* Kakao Authentication Modal Styles */
.kakao-modal-content {
  width: 720px;
  max-width: 90%;
}

.kakao-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.step-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
  border: 1px solid #e0e0e0;
}

.step-list li:before {
  content: "";
  display: block;
  width: 70px;
  height: 70px;
  overflow: hidden;
  margin: auto;
}

.step-list.kakao li:before {
  background: url("../images/ico_kakaoMore.png") no-repeat;
}

.step-list.naver li:before {
  background: url("../images/ico_naverMore.png") no-repeat;
}

.step-list li:after {
  background: url("../images/ico_step_playing.png") no-repeat;
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  right: -20px;
  margin-top: -20px;
  z-index: 52;
}

.step-list li.last:after {
  visibility: hidden;
}

.step-list li:first-child::before {
  background-position: 0 0;
}

.step-list li:nth-child(2)::before {
  background-position: -70px 0;
}

.step-list li:nth-child(3)::before {
  background-position: -140px 0;
}

.step-list li:last-child::before {
  background-position: -210px 0;
}

.step-item {
  border-right: 1px solid #e0e0e0;
  min-height: 200px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.step-item.last {
  border-right: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 500;
  color: #444;
  margin: 15px 0 8px 0;
  line-height: 1.5;
}

.step-subtitle {
  font-size: 15px;
  color: #888;
  margin: 0 0 12px 0;
}

.step-badge {
  text-align: center;
  margin-top: 10px;
}

.step-badge span {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 0px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  line-height: 26px;
}

.kakao-notice {
  margin: 16px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kakao-notice li {
  font-size: 14px;
  color: #a70638;
  padding-left: 15px;
  position: relative;
}

.kakao-notice li:before {
  content: "-";
  position: absolute;
  left: 0;
}

.kakao-form {
  margin-top: 24px;
}

.kakao-form-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}

.kakao-form-field {
  flex: 1;
}

.kakao-form-field input {
  width: 100%;
  height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  color: #333;
}

.kakao-form-field input:focus {
  outline: none;
  border-color: #8b0029;
  box-shadow: inset 0 0 0 1px #8b0029;
}

.kakao-form-button {
  width: 20%;
}

.kakao-form-button .btn-confirm {
  width: 100%;
  height: 50px;
  margin: 0;
}

/* Responsive Kakao Modal */
@media screen and (max-width: 1024px) {
  .kakao-modal-content {
    width: 95%;
  }

  .step-item {
    min-height: 160px;
    padding: 16px;
  }

  .step-title {
    font-size: 14px;
  }

  .step-subtitle {
    font-size: 12px;
  }

  .kakao-form-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .kakao-form-field {
    width: 100%;
    min-width: unset;
  }

  .kakao-form-button {
    width: 100%;
    min-width: unset;
  }

  .kakao-form-button .btn-confirm {
    height: 44px;
  }
}

/* Student Verification Modal Styles */
.cert-register-modal-content {
  width: 530px;
  max-width: 90%;
}

.cert-register-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.cert-register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-register-input {
  width: 100%;
  height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  color: #333;
  line-height: 26px;
}

.cert-register-input:focus {
  outline: none;
  border-color: #8b0029;
  box-shadow: inset 0 0 0 1px #8b0029;
}

.cert-register-input::placeholder {
  color: #999;
}

.cert-register-rrn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-register-rrn-input {
  flex: 1;
  margin: 0;
  height: 50px;
}

.cert-register-rrn-separator {
  color: #333;
  font-size: 16px;
  line-height: 50px;
  flex-shrink: 0;
}

.cert-register-notice {
  margin: 0 0 16px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-register-notice li {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  position: relative;
  padding-left: 15px;
}

.cert-register-notice li:before {
  content: "-";
  position: absolute;
  left: 0;
}

.cert-register-button-group {
  display: flex;
  justify-content: center;
}

.cert-register-button-group .btn-confirm {
  width: 150px;
  height: 40px;
}

/* Responsive Student Verification Modal */
@media screen and (max-width: 768px) {
  .cert-register-modal-content {
    width: 95%;
  }

  .cert-register-input {
    height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .cert-register-rrn-input {
    height: 44px;
  }

  .cert-register-rrn-separator {
    line-height: 44px;
  }

  .cert-register-button-group .btn-confirm {
    width: 120px;
    height: 36px;
    line-height: 35px;
    font-size: 14px;
  }

  .cert-register-notice li {
    font-size: 13px;
  }
}

/* User ID Check Modal Styles */
.user-id-check-modal-content {
  width: 450px;
  max-width: 90%;
}

.user-id-check-modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 30px;
}

.user-id-check-info {
  background: #f5f5f5;
  color: #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.user-id-check-item {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  line-height: 1.6;
}

.user-id-check-label {
  font-weight: 500;
  margin-right: 4px;
}

.user-id-check-value {
  font-weight: 500;
}

.user-id-check-notice {
  margin: 0 0 20px 0;
  padding: 0;
  font-weight: 500;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-id-check-notice li {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  position: relative;
  padding-left: 15px;
}

.user-id-check-notice li:before {
  content: "-";
  position: absolute;
  left: 0;
}

.user-id-check-footer {
  padding: 0 30px 30px 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.user-id-check-footer .btn-confirm {
  height: 40px;
  line-height: 38px;
}

.user-id-check-footer .btn-confirm:nth-of-type(2) {
  flex: 1;
  color: #a0103b;
  border: 1px solid #a0103b;
  background-color: #ffffff;
}

/* Responsive User ID Check Modal */
@media screen and (max-width: 768px) {
  .user-id-check-modal-content {
    width: 95%;
  }

  .user-id-check-modal-body {
    padding: 20px;
  }

  .user-id-check-info {
    padding: 15px;
  }

  .user-id-check-footer {
    padding: 0 20px 20px 20px;
    flex-direction: column;
  }

  .user-id-check-footer .btn-confirm {
    width: 100%;
  }
}

/* OTP Popup Modal Styles */
.otp-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.otp-popup-overlay.active {
  display: flex;
}

.otp-popup-container {
  background: #fff;
  border-radius: 16px;
  width: 520px;
  overflow-y: auto;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}

.otp-popup-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  position: relative;
  background-color: #f8f0f2;
}

.otp-popup-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.otp-popup-close {
  background: none;
  border: none;
  color: #3f3f46;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%222%22%20stroke%3D%22currentColor%22%20aria-hidden%3D%22true%22%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M6%2018L18%206M6%206l12%2012%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E);
  background-repeat: no-repeat;
  transition: color 0.3s ease;
}

.otp-popup-close:before {
  content: "×";
  font-size: 32px;
  line-height: 1;
}

.otp-popup-close:hover {
  color: #000;
}

.otp-popup-body {
  padding: 30px;
}

.otp-popup-description {
  font-size: 17px;
  color: #444;
  line-height: 1.5;
}

.otp-popup-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.otp-popup-input:focus {
  outline: none;
  border-color: #8b0029;
  box-shadow: inset 0 0 0 1px #8b0029;
}

.otp-popup-input::placeholder {
  color: #999;
}

.otp-popup-footer {
  padding: 0 25px 30px 25px;
  text-align: center;
}

.otp-popup-btn-confirm {
  background: #a0103b;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 3px;
  width: 150px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.otp-popup-btn-confirm:hover {
  background: #8b0029;
}

.otp-popup-btn-confirm:active {
  transform: scale(0.98);
}

/* Responsive OTP Popup */
@media screen and (max-width: 768px) {
  .otp-popup-container {
    width: 95%;
  }

  .otp-popup-header {
    padding: 20px;
  }

  .otp-popup-title {
    font-size: 24px;
  }

  .otp-popup-body {
    padding: 20px;
  }

  .otp-popup-description {
    font-size: 15px;
  }

  .otp-popup-footer {
    padding: 0 20px 20px 20px;
  }

  .otp-popup-btn-confirm {
    width: 120px;
    height: 36px;
    font-size: 14px;
  }
}

/* QRCode Popup Modal Styles */
.qrcode-modal-content {
  color: #000;
  width: 520px;
  max-width: 90%;
}

.qrcode-footer {
  background-color: #f3f3f3;
  padding: 24px;
}

/* Biometric Information Modal Styles */
.bio-info-modal-content {
  width: 560px;
  max-width: 90%;
}

.bio-info-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.bio-info-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-info-input {
  width: 100%;
  height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  color: #333;
  line-height: 26px;
}

.bio-info-input:focus {
  outline: none;
  border-color: #8b0029;
  box-shadow: inset 0 0 0 1px #8b0029;
}

.bio-info-input::placeholder {
  color: #999;
}

.bio-info-notice {
  margin: 16px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bio-info-notice li {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  position: relative;
  padding-left: 15px;
}

.bio-info-notice li:before {
  content: "-";
  position: absolute;
  left: 0;
}

.bio-info-footer {
  padding: 20px 25px 25px 25px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-bio-delete {
  width: 150px;
  height: 40px;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #777777;
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-bio-delete:hover {
  background: #e8e8e8;
  border-color: #999;
}

.btn-bio-register {
  width: 150px;
  height: 40px;
  background: #a0103b;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-bio-register:hover {
  background: #8b0029;
}

.btn-bio-register:active {
  transform: scale(0.98);
}

/* Responsive Biometric Modal */
@media screen and (max-width: 768px) {
  .bio-info-modal-content {
    width: 95%;
  }

  .bio-info-input {
    height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .bio-info-footer {
    padding: 16px 20px 20px 20px;
    flex-direction: column;
    gap: 8px;
  }

  .btn-bio-delete,
  .btn-bio-register {
    width: 100%;
    height: 36px;
    font-size: 13px;
  }

  .bio-info-notice li {
    font-size: 13px;
  }

  ul.step-list {
    grid-template-columns: 1fr 1fr;
  }

  li.step-item:nth-of-type(1) {
    border-bottom: 1px solid #e0e0e0;
  }

  li.step-item:nth-of-type(2) {
    border-right: 0;
    border-bottom: 1px solid #e0e0e0;
  }

  ul.step-list li:nth-of-type(2)::after {
    right: inherit;
    top: inherit;
    left: -20px;
    bottom: -20px;
    transform: rotate(140deg);
  }
}

::-webkit-scrollbar {
  background-color: transparent;
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-corner {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 3px solid transparent;
  background-clip: content-box;
}

/* Google OTP Registration Modal Styles */
.otp-regist-modal-content {
  width: 640px;
  max-width: 90%;
}

.otp-regist-modal-body {
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
}

.otp-regist-intro {
  margin-bottom: 12px;
  color: #444;
  font-size: 15px;
  border: 1px solid #cccccc;
  padding: 12px 16px;
  border-radius: 16px;
}

.otp-regist-intro p {
  margin: 0;
}

.otp-regist-instruction {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #444;
  font-size: 14px;
}

.otp-regist-instruction p {
  margin: 0;
}

.icon-plus {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("../images/ico_plus.jpg") no-repeat center;
  background-size: contain;
  vertical-align: top;
}

.otp-regist-download {
  margin-bottom: 16px;
}

.otp-regist-download h4 {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin: 0 0 10px 0;
}

.otp-download-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.otp-download-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.otp-qr-image {
  width: 100%;
  height: auto;
}

.otp-regist-info {
  margin-bottom: 16px;
}

.otp-regist-info h4 {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin: 0 0 10px 0;
}

.otp-info-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.otp-info-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.otp-info-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-bottom: 10px;
  padding: 4px 8px 6px 8px;
  background: #f3f3f3;
}

.otp-info-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.otp-secret-key {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  word-break: break-all;
}

.otp-copy-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.otp-copy-btn:hover {
  opacity: 0.7;
}

.otp-qr-code {
  vertical-align: middle;
}

.otp-regist-input {
  margin-bottom: 0px;
}

.otp-input-label {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin: 0 0 10px 0;
}

.otp-regist-input-field {
  width: 100%;
  height: 50px;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-weight: 600;
}

.otp-regist-input-field:focus {
  outline: none;
  border-color: #8b0029;
  box-shadow: inset 0 0 0 1px #8b0029;
}

.otp-regist-footer {
  padding: 20px 25px 25px 25px;
  text-align: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.otp-regist-footer .btn-confirm {
  width: 150px;
  height: 40px;
}

.secukit, .secukit.ui-draggable {z-index: 999;}

/* Responsive Google OTP Registration Modal */
@media screen and (max-width: 768px) {
  .otp-regist-modal-content {
    width: 95%;
  }

  .otp-regist-modal-body {
    padding: 20px;
  }

  .otp-download-items,
  .otp-info-items {
    grid-template-columns: 1fr;
  }

  .otp-regist-intro {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .otp-regist-instruction {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .otp-regist-download h4,
  .otp-regist-info h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .otp-regist-input-field {
    height: 44px;
    font-size: 14px;
  }

  .otp-regist-footer .btn-confirm {
    width: 120px;
    height: 36px;
    font-size: 14px;
  }
}

::-webkit-scrollbar-track {
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 3px solid transparent;
  background-clip: content-box;
}
