/* =========================================================
   Login Page – Mobile Layout
   ========================================================= */

.login-page {
  position: relative;
  height: 100%;
  background-color: #2560A6;
  overflow: hidden;
}

.login-page .row {
  min-height: 100vh;
}

/* =========================================================
   Login Card
   ========================================================= */

.login-card {
  position: relative;
  z-index: 5;
  height: calc(100vh - 176px - 48px);
  margin: 176px 0 48px;
  padding: 24px;
  background-color: #EBECF0;
  border-radius: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* =========================================================
   Artwork & Decorative Elements
   ========================================================= */

.artwork-wrapper {
  position: relative;
}

.artwork-box,
.artwork-box-inside {
  display: none;
}

.artwork-decoration {
  position: absolute;
  top: -96px;
  right: -4%;
  z-index: 1;
  width: 486px;
  pointer-events: none;
}

.artwork-foreground {
  position: absolute;
  bottom: -332px;
  right: -4%;
  z-index: 3;
  width: 486px;
  pointer-events: none;
}

/* =========================================================
   Logo
   ========================================================= */

.logo {
  position: absolute;
  top: 40px;
  left: 8%;
  z-index: 3;
  width: 100px;
}

/* =========================================================
   Header
   ========================================================= */

.login-header {
  height: 32px;
  margin-bottom: 24px;
}

.login-title {
  font-size: 14px;
  font-weight: 500;
  color: #0F111A;
}

/* =========================================================
   Form Layout
   ========================================================= */

.auth-input-group {
  margin-bottom: 12px;
}

/* =========================================================
   Input Container
   ========================================================= */

.auth-input {
  height: 40px;
  background-color: #EBECF0;
  border: 1px solid #AE93BD;
  border-radius: 8px;
  overflow: hidden;
}

/* Remove default Bootstrap borders */
.auth-input .form-control,
.auth-input .input-group-text {
  border: none;
  background-color: transparent;
}

/* Input Field */
.auth-input .form-control {
  height: 40px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  color: #0F111A;
}

.auth-input .form-control::placeholder {
  font-size: 12px;
  font-weight: 400;
  color: #685870;
}

/* Input Icons */
.auth-input .input-group-text {
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Password Toggle Button */
.auth-input button.input-group-text {
  cursor: pointer;
}

/* Focus State */
.auth-input .form-control:focus {
  box-shadow: none;
}

/* =========================================================
   Links
   ========================================================= */

.forgot-password-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #8E7999 !important;
  text-decoration: underline !important;
}

/* =========================================================
   Primary Login Button
   ========================================================= */

.btn-login {
  height: 48px;
  padding: 0;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1;
  color: #EBECF0;
  background-color: #2560A6;
  border: 1px solid #85A1EE;
  border-radius: 8px !important;
}

.btn-login:hover {
  color: #EBECF0;
}

/* =========================================================
   Mock CAPTCHA
   ========================================================= */

.mock-captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  margin-bottom: 24px;
  padding: 0 12px 0 16px;
  background-color: #EBECF0;
  border: 1px solid #AE93BD;
  border-radius: 8px;
}

/* CAPTCHA Left Section */
.mock-captcha-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Checkbox Placeholder */
.mock-checkbox {
  width: 24px;
  height: 24px;
  background-color: #EDEEF2;
  border: 1px solid #AE93BD;
  border-radius: 4px;
}

/* CAPTCHA Text */
.mock-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #0F111A;
}

/* CAPTCHA Image */
.mock-captcha-right img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* =========================================================
   Divider
   ========================================================= */

.or-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 24px 0 16px;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #AE93BD;
}

.or-divider span {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #8E7999;
}

/* =========================================================
   Secondary Action Buttons (SSO)
   ========================================================= */

.auth-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 8px;
  background-color: #EBECF0;
  border: 1px solid #AE93BD;
  border-radius: 8px !important;
  color: #685870;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-action-btn .action-text {
  width: 100%;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1;
  word-spacing: -1.5px;
}

.auth-action-btn .action-icon {
  position: relative;
}

.auth-action-btn .action-icon img {
  width: 26px;
  height: 26px;
}

/* Hover State */
.auth-action-btn:hover {
  background-color: #E4E6EC;
  border-color: #9B7FB8;
}

/* Focus State (Accessibility) */
.auth-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(174, 147, 189, 0.3);
}

/* Active State */
.auth-action-btn:active {
  transform: translateY(1px);
}

/* =========================================================
   Tablet Layout (577px – 991px)
   ========================================================= */

@media (min-width: 577px) and (max-width: 991px) {

  /* ---------------------------------------------------------
     Login Card
     --------------------------------------------------------- */

  .login-card {
    position: relative;
    z-index: 5;
    height: calc(100vh - 240px - 48px);
    padding: 32px;
    border-radius: 16px;
  }

  /* ---------------------------------------------------------
     Inputs
     --------------------------------------------------------- */

  .auth-input {
    height: 48px;
  }

  .auth-input .form-control {
    height: 48px;
    font-size: 14px;
  }

  .auth-input .form-control::placeholder {
    font-size: 14px;
    font-weight: 400;
  }

  /* ---------------------------------------------------------
     Artwork
     --------------------------------------------------------- */

  .artwork-decoration {
    width: 620px;
    top: -148px;
    right: 0%;
  }

  .artwork-foreground {
    width: 620px;
    bottom: -408px;
    right: 0%;
    z-index: 3;
  }

  /* ---------------------------------------------------------
     Logo & Header
     --------------------------------------------------------- */

  .logo {
    width: 140px;
    top: 40px;
    left: 8%;
  }

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

  /* ---------------------------------------------------------
     Text & Links
     --------------------------------------------------------- */

  .forgot-password-link {
    font-size: 14px;
  }

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

  .or-divider span {
    font-size: 14px;
  }

  /* ---------------------------------------------------------
     Buttons
     --------------------------------------------------------- */

  .btn-login {
    height: 56px;
    font-size: 15px !important;
  }

  .auth-action-btn {
    height: 48px;
  }

  .auth-action-btn .action-text {
    width: 100%;
    font-size: 14px;
  }

  .auth-action-btn .action-icon img {
    width: 32px;
    height: 32px;
  }

}

/* =========================================================
   Desktop Layout (992px – 1199px)
   ========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {

  /* ---------------------------------------------------------
     Login Card
     --------------------------------------------------------- */

  .login-card {
    position: relative;
    z-index: 5;
    height: 720px;
    margin: 0;
    padding: 32px;
    border-radius: 16px 0 0 16px;
  }

  /* ---------------------------------------------------------
     Artwork Containers
     --------------------------------------------------------- */

  .artwork-wrapper {
    position: relative;
  }

  .artwork-box {
    display: block;
    position: relative;
    z-index: 2;
    height: 720px;
    border-radius: 0 24px 24px 0;
    box-shadow: inset 0 0 0 12px #EBECF0;
  }

  .artwork-box-inside {
    display: block;
    height: 720px;
    border-radius: 24px;
    box-shadow: inset 0 0 0 12px #EBECF0;
  }

  .artwork-decoration {
    position: absolute;
    top: 64px;
    right: -48%;
    z-index: 1;
    width: 840px;
    pointer-events: none;
  }

  .artwork-foreground {
    position: absolute;
    bottom: -90px;
    right: -48%;
    z-index: 3;
    width: 840px;
    pointer-events: none;
  }

  /* ---------------------------------------------------------
     Header & Logo
     --------------------------------------------------------- */

  .login-header {
    height: 40px;
    margin-bottom: 32px;
  }

  .logo {
    display: none;
  }

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

  /* ---------------------------------------------------------
     Inputs
     --------------------------------------------------------- */

  .auth-input {
    height: 48px;
  }

  .auth-input .form-control {
    height: 48px;
    font-size: 14px;
  }

  .auth-input .form-control::placeholder {
    font-size: 14px;
    font-weight: 400;
  }

  /* ---------------------------------------------------------
     Text & Links
     --------------------------------------------------------- */

  .forgot-password-link {
    font-size: 14px;
  }

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

  .or-divider span {
    font-size: 14px;
  }

  /* ---------------------------------------------------------
     Buttons
     --------------------------------------------------------- */

  .btn-login {
    height: 56px;
    font-size: 15px !important;
  }

  .auth-action-btn {
    height: 48px;
  }

  .auth-action-btn .action-text {
    width: 100%;
    font-size: 14px;
  }

  .auth-action-btn .action-icon img {
    width: 32px;
    height: 32px;
  }

}

/* =========================================================
   Large Desktop Layout (≥ 1200px)
   ========================================================= */

@media (min-width: 1200px) {

  /* ---------------------------------------------------------
     Login Card
     --------------------------------------------------------- */

  .login-card {
    position: relative;
    z-index: 5;
    height: 720px;
    margin: 0;
    padding: 48px;
    border-radius: 16px 0 0 16px;
  }

  /* ---------------------------------------------------------
     Header
     --------------------------------------------------------- */

  .login-header {
    height: 40px;
    margin-bottom: 32px;
  }

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

  /* ---------------------------------------------------------
     Artwork Containers
     --------------------------------------------------------- */

  .artwork-wrapper {
    position: relative;
  }

  .artwork-box {
    display: block;
    position: relative;
    z-index: 2;
    height: 720px;
    border-radius: 0 24px 24px 0;
    box-shadow: inset 0 0 0 12px #EBECF0;
  }

  .artwork-box-inside {
    display: block;
    height: 720px;
    border-radius: 24px;
    box-shadow: inset 0 0 0 12px #EBECF0;
  }

  .artwork-decoration {
    position: absolute;
    top: -64px;
    right: -48%;
    z-index: 1;
    width: 980px;
    pointer-events: none;
  }

  .artwork-foreground {
    position: absolute;
    bottom: -90px;
    right: -48%;
    z-index: 3;
    width: 980px;
    pointer-events: none;
  }

  /* ---------------------------------------------------------
     Logo
     --------------------------------------------------------- */

  .logo {
    display: none;
  }

  /* ---------------------------------------------------------
     Inputs
     --------------------------------------------------------- */

  .auth-input {
    height: 48px;
  }

  .auth-input .form-control {
    height: 48px;
    font-size: 14px;
  }

  .auth-input .form-control::placeholder {
    font-size: 14px;
    font-weight: 400;
  }

  /* ---------------------------------------------------------
     Text & Links
     --------------------------------------------------------- */

  .forgot-password-link {
    font-size: 14px;
  }

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

  .or-divider span {
    font-size: 14px;
  }

  /* ---------------------------------------------------------
     Buttons
     --------------------------------------------------------- */

  .btn-login {
    height: 56px;
    font-size: 15px !important;
  }

  .auth-action-btn {
    height: 48px;
  }

  .auth-action-btn .action-text {
    width: 100%;
    font-size: 14px;
  }

  .auth-action-btn .action-icon img {
    width: 32px;
    height: 32px;
  }

}
