@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =========================
    Base Styles
   ========================= */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;  
}

.mobile-wrapper {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
} 

/* =========================
    Typography & Navigation
   ========================= */
.top-bar { margin-bottom: 15px; }

.back-link { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f9fdfb;
    border-radius: 50%;
    font-size: 18px; 
    color: #27ae60; 
    text-decoration: none; 
    transition: all 0.2s ease;
}

.back-link:hover { background-color: #F3F4F6; }

.page-title { 
    font-size: 18px; 
    font-weight: 700; 
    color: #111827; 
    margin-bottom: 5px; 
}

.page-subtitle { 
    font-size: 13px; 
    color: #6B7280; 
    margin-bottom: 30px; 
    line-height: 1.5;
}

/* --- 6-DIGIT OTP GRID (FROM IMAGE) --- */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 25px;
}

.otp-box {
    width: 40px; /* Sized to fit 6 boxes perfectly in 380px width */
    height: 40px;
    background-color: #fff;
    border: 1px solid #d9f2e2;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    color: #111;
    outline: none;
    transition: all 0.25s ease;
}

.otp-box:focus {
    border-color: #27ae60;
    box-shadow: 0 0 6px rgba(39,174,96,0.25);
    background: #fff;
}

/* =========================
Form Inputs (Updated Logic)
   ========================= */
.input-container { margin-bottom: 16px; }

.input-container label { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    color: #4B5563; 
    margin-bottom: 6px; 
}

/* The Box Style You Requested */
.form-control {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d9f2e2;
    font-size: 13px;
    color: #111;
    outline: none;
    transition: all 0.25s ease;
    display: block;
}

.form-control:focus {
    border-color: #27ae60;
    box-shadow: 0 0 6px rgba(39,174,96,0.25);
    background: #fff;
}

/* Fix for Blue Autofill Gap */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    -webkit-text-fill-color: #111 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Password wrapper for the Eye Icon */
.custom-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.eye-toggle { 
    position: absolute;
    right: 14px;
    color: #9CA3AF; 
    cursor: pointer; 
    font-size: 18px;
    z-index: 5;
}

.eye-toggle:hover { 
    color: #27ae60; 
}

/* =========================
    Buttons & Links
   ========================= */
.forgot-link-container { text-align: right; margin-top: 6px; }
.forgot-link-container a { color: #27ae60; text-decoration: none; font-size: 12px; font-weight: 600; }
.forgot-link-container:hover a { text-decoration: underline; }

.primary-btn {
    width: 100%; 
    height: 45px; 
    background-color: #27ae60; 
    color: #fff;
    border: none; 
    border-radius: 8px; /* Matched to 8px */
    font-size: 14px; 
    font-weight: 600;
    margin-top: 20px; 
    cursor: pointer; 
    transition: all 0.2s;
}

.primary-btn:hover {
    background: #2ecc71;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39,174,96,0.2);
}

.primary-btn:active {
    background-color: #1e8449;
    transform: translateY(0);
}

/* =========================
    Footer
   ========================= */
.bottom-nav { 
    margin-top: auto; 
    text-align: center; 
}

.bottom-nav p { 
    margin-bottom: 0 !important; /* Removes Bootstrap's default bottom margin on paragraphs */
    padding: 0;
    font-size: 11px; 
    color: #6B7280; 
}

/* =========================
    Desktop Refinement
   ========================= */
@media (min-width: 769px) {
    body { align-items: center; } 
    
    .mobile-wrapper {
        width: 380px; 
        background-color: #fff;
        min-height: auto;
        border-radius: 18px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
        padding: 30px 35px;
    }
}

/* Small Screen Tweak for 6 Boxes */
@media (max-width: 360px) {
    .otp-container { gap: 4px; }
    .otp-box { width: 45px; height: 45px; font-size: 13px; }
}





/* =========================
   Modern Modal
   ========================= */
.modern-modal {
  border-radius: 14px;
  border: none;
  background: #ffffff;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.animate-modal {
  animation: scaleIn 0.35s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modern-modal .modal-header {
  background: #f9fdfb;
  color: #333;
  border-bottom: 1px solid #e6f4ed;
  padding: 14px 20px;
}

.modern-modal .modal-title {
  font-weight: 600;
  color: #27ae60;
}

.modern-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 12px;
}

.modal-footer {
  background: #f9fdfb;
  border-top: 1px solid #e6f4ed;
}

/* =========================
   Section Cards
   ========================= */
.section-card {
  border: 1px solid #eef7f1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #27ae60;
  margin-bottom: 15px; 
}

/* =========================
   Buttons
   ========================= */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9rem; 
}

.btn-success {
  background: #27ae60;
  border-color: #27ae60;
}

.btn-success:hover {
  background: #2ecc71;
  border-color: #2ecc71;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(39,174,96,0.2);
}

.btn-primary { 
  /* background-color:#27ae60; 
  border-color:#27ae60;  */
}
.btn-primary:hover { 
  /* background: #2ecc71;
  border-color: #2ecc71; */
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(39,174,96,0.2);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(39,174,96,0.2);
}

/* =========================
   Paragraph
   ========================= */
p {
  font-size: 13px; 
  color: gray;
} 

/* =========================
    Initial Setup Notice
   ========================= */
.no-admin-notice {
    margin-top: 25px;
    padding: 15px;
    background-color: #ecfdf5; /* Light amber background */
    /* border: 1px solid #27ae60; */
    border-radius: 10px;
}

.no-admin-notice p {
    color: #046a3a; /* Darker amber text */
    font-size: 13px;
    margin-bottom: 2px !important;
}

.setup-link {
    color: #27ae60;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.setup-link:hover {
    text-decoration: underline;
}

/* =========================
    Top Bar Branding Layout
   ========================= */
.brand-header-row {
    display: flex;
    align-items: center; /* Vertical alignment */
    gap: 15px;           /* Space between arrow and brand box */
    margin-bottom: 25px;
}

/* Override previous margin to fit inside header */
.brand-badge-container {
    margin-bottom: 0 !important; 
    display: flex;
}

.brand-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #f9fdfb;
    /* border: 1px solid #e6f4ed; */
    border-radius: 10px;
}

.brand-logo {
    width: 25px; /* Slightly smaller to fit top bar */
    height: 25px;
    object-fit: contain;
}

.brand-text {
    font-size: 12px; /* Scaled down for the header */
    font-weight: 600;
    color: #27ae60;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

/* Ensure the back-link doesn't shrink */
.back-link {
    flex-shrink: 0;
}