@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ========================================
   AUTHENTICATION PAGE STYLES - DM SANS
   ======================================== */

/* Global Font */
* {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Background Side */
.bg-side {
  background-image: url("templates/img/bg.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch;
}

.bg-side + .col-md-6 { display: flex; }

/* Layout & Wrapper */
.auth-wrapper { 
    margin: 0 auto;
    max-width: 728px;
}
.header-bg, footer { display: none; }

/* Floating Back Button */
.back-floating-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  width: 200px;
  height: 42px;
  color: #161616;
  display: flex;
  align-items: center;
  justify-content: end;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.back-floating-btn img {
  width: 11px;
  height: 11px;
  margin-right: 10px;
}

/* Modal Base Styles */
.modal-title, .modal-body, .modal-header { padding: 0; }
.modal-header .btn-close {
  padding: calc(var(--bs-modal-header-padding-y)*.5) calc(var(--bs-modal-header-padding-x)*.5);
  margin: calc(-.5*var(--bs-modal-header-padding-y)) calc(-.5*var(--bs-modal-header-padding-x)) calc(-.5*var(--bs-modal-header-padding-y)) auto;
  position: absolute;
  right: 15px;
  top: 15px;
}

/* OTP Modal Styles */
.otp-modal {
  border-radius: 12px;
  padding: 20px;
  font-family: 'DM Sans', sans-serif;
}

.otp-modal .modal-title {
  font-weight: 700;
  font-size: 28px;
  font-family: 'DM Sans', sans-serif;
}

.modal-logo { margin-bottom: 32px !important; }
.otp-subtitle {
  font-size: 16px;
  color: #161616;
  margin-bottom: 32px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

.otp-email {
  font-size: 13px;
  margin-bottom: 6px !important;
  color: #5A5C60;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

.otp-inputs {
  display: flex;
  justify-content: space-between;
}

.otp-inputs .otp-box {
  width: 45px;
  height: 55px;
  margin: 0 5px;
  font-size: 24px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.otp-inputs .dash {
  font-size: 24px;
  margin: 0 8px;
  align-self: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.resend-text {
  font-size: 13px;
  margin: 8px 0 26px;
  color: #5A5C60;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

.rest-sub { 
  margin-bottom: 32px;
  font-family: 'DM Sans', sans-serif;
}

/* Success Modal */
.success-modal {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  font-family: 'DM Sans', sans-serif;
}

/* Buttons */
.btn-new {
  background: #EFAC2F;
  border-radius: 8px;
  border: none;
  color: #282828 !important;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.5px;
}

.btn-new:hover {
  background: #F4C774 !important;
  color: #282828 !important;
}

.btn-dark { 
  background: #000; 
  border-radius: 0; 
  font-family: 'DM Sans', sans-serif;
}

.btn-link { 
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}

/* Form Elements */
.form-control {
  background-color: #fff !important;
  border-radius: 8px !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

.form-label { 
  margin-bottom: 6px !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #5A5C60;
}

.otp-box:focus {
  border-color: #EFAC2F;
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 172, 47, 0.2);
}

/* Password Toggle */
.password-wrapper { position: relative; }

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  font-size: 18px;
  z-index: 10;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toggle-password:hover {
  background: rgba(0,0,0,0.1);
  color: #495057;
}

/* Headings & Titles */
h4, h2, h5.modal-title {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700;
}

/* Links */
a { 
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .back-floating-btn {
        top: 12px;
        right: 12px;
        width: 250px;
        height: 38px;
    }
  
  .px-5 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  
  .otp-inputs .otp-box {
    width: 100%;
  }
  
  .otp-modal .modal-title {
    font-size: 24px;
  }
}
