/* ========================================
   ArTechBD Complete Login Page Styling
   Organized Authentication Methods
   ======================================== */

/* ========================================
   1. GOOGLE SIGN-IN BUTTON
   ======================================== */

.google-signin-wrapper {
  margin-bottom: 15px !important;
}

.google-signin-btn {
  width: 100%;
  padding: 14px 20px;
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #2d3748;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.google-signin-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #2d3748;
}

/* ========================================
   2. MOBILE NUMBER LOGIN BUTTON
   ======================================== */

#pts-mobile-no-otp,
button#pts-mobile-no-otp.btn {
  width: 100%;
  margin: 0 0 15px 0;
  padding: 14px 20px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#pts-mobile-no-otp:hover,
button#pts-mobile-no-otp.btn:hover {
  background: linear-gradient(135deg, #F7931E 0%, #FF6B35 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  color: #fff;
}

#pts-mobile-no-otp:active,
button#pts-mobile-no-otp.btn:active {
  transform: translateY(0);
}

/* Add mobile icon */
#pts-mobile-no-otp::before,
button#pts-mobile-no-otp.btn::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ========================================
   3. OR DIVIDER STYLING
   ======================================== */

/* First OR divider (after Google/Mobile buttons) */
.artechbd-login-body .login-form > div[style*="display: flex"] {
  display: flex !important;
  align-items: center;
  margin: 20px 0 !important;
}

.artechbd-login-body .login-form > div[style*="display: flex"] > div {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.artechbd-login-body .login-form > div[style*="display: flex"] > span {
  padding: 0 15px;
  color: #a0aec0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   4. REGULAR LOGIN BUTTON
   ======================================== */

.artechbd-login-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.artechbd-login-btn:hover {
  background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.artechbd-login-btn:active {
  transform: translateY(0);
}

/* Fix the button container */
.artechbd-login-body .login-form .buttons {
  margin-bottom: 15px;
  margin-top: 20px;
}

.artechbd-login-body .login-form .buttons .pull-right {
  width: 100%;
  float: none;
}

/* ========================================
   5. LAYOUT ORGANIZATION
   ======================================== */

/* Organize button order properly */
.artechbd-login-body .login-form {
  display: flex;
  flex-direction: column;
}

/* Move mobile button after Google button, before OR divider */
.artechbd-login-body .login-form #pts-mobile-no-otp {
  order: -5; /* Place it high in order */
}

.artechbd-login-body .login-form .google-signin-wrapper {
  order: -10; /* Google button first */
}

.artechbd-login-body .login-form > div[style*="display: flex"] {
  order: -1; /* OR divider after buttons */
}

/* Regular form fields come after */
.artechbd-login-body .login-form .form-group {
  order: 0;
}

.artechbd-login-body .login-form .artechbd-login-options {
  order: 1;
}

.artechbd-login-body .login-form .buttons {
  order: 2;
}

/* ========================================
   6. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 576px) {
  .google-signin-btn,
  #pts-mobile-no-otp,
  button#pts-mobile-no-otp.btn,
  .artechbd-login-btn {
    padding: 12px 18px;
    font-size: 13px;
  }
  
  .google-signin-btn svg,
  #pts-mobile-no-otp::before,
  button#pts-mobile-no-otp.btn::before {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   7. BENGALI FONT SUPPORT
   ======================================== */

.artechbd-login-body,
.artechbd-login-body .well,
.artechbd-login-body button,
.artechbd-login-body .form-control {
  font-family: 'SolaimanLipi', 'Kalpurush', 'Nikosh', Arial, sans-serif;
}

/* ========================================
   8. FOCUS STATES FOR ACCESSIBILITY
   ======================================== */

.google-signin-btn:focus,
#pts-mobile-no-otp:focus,
button#pts-mobile-no-otp.btn:focus,
.artechbd-login-btn:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ========================================
   9. LOADING STATES
   ======================================== */

.google-signin-btn.loading,
#pts-mobile-no-otp.loading,
button#pts-mobile-no-otp.btn.loading,
.artechbd-login-btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ========================================
   10. ALTERNATIVE COLOR SCHEMES
   ======================================== */

/* Orange/Green Theme */
.theme-orange #pts-mobile-no-otp {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

/* Green Theme */
.theme-green #pts-mobile-no-otp {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

/* Purple Theme */
.theme-purple #pts-mobile-no-otp {
  background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%);
}

/* Red Theme */
.theme-red #pts-mobile-no-otp {
  background: linear-gradient(135deg, #F44336 0%, #C62828 100%);
}