/* ==========================================================================
   Metal India Online - Clean Minimal Visitor Login Styles
   ========================================================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0b0e14;
  color: #e6ebf2;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Ambient Radiant Background Glows */
.login-page::before {
  content: "";
  position: fixed;
  top: -100px;
  right: 25%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 169, 65, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.login-page::after {
  content: "";
  position: fixed;
  bottom: -100px;
  left: 20%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 201, 103, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* Header */
.login-header {
  position: relative;
  z-index: 10;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.login-nav-wrap {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.login-header .brand-logo {
  display: block;
  width: 200px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9d2de;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-back-home:hover {
  background: #d8a941;
  border-color: #d8a941;
  color: #0b0e14;
}

/* Main Centered Box */
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 60px;
  position: relative;
  z-index: 1;
}

.login-card-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-card {
  background: rgba(18, 23, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(216, 169, 65, 0.3);
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.card-top-head {
  margin-bottom: 24px;
}

.card-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.card-subtitle {
  font-size: 13.5px;
  color: #8c97a7;
  margin: 0;
  line-height: 1.4;
}

/* Form Styles */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #d1d9e2;
  margin-bottom: 8px;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 3px 5px;
  transition: all .2s ease;
}

.phone-input-wrap:focus-within {
  border-color: #d8a941;
  box-shadow: 0 0 0 3px rgba(216, 169, 65, 0.18);
  background: rgba(11, 14, 20, 0.95);
}

.phone-input-wrap.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.country-code-pill {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
  flex-shrink: 0;
}

.phone-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  padding: 10px 12px;
}

.phone-input::placeholder {
  color: #556070;
  font-weight: 400;
  font-size: 14.5px;
}

/* Error message */
.input-error-msg {
  display: none;
  font-size: 12.5px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 9px;
}

.input-error-msg.visible {
  display: block;
}

/* Submit Button */
.btn-login-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  background: #d8a941;
  color: #0b0e14;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s ease;
}

.btn-login-submit:hover:not(:disabled) {
  background: #f1c967;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(216, 169, 65, 0.3);
}

.btn-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-terms-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #7e8b9b;
  text-align: center;
}

.login-terms-note a {
  color: #c9d2de;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}

.login-terms-note a:hover {
  color: #d8a941;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   SERVICE NOT STARTED ALERT (Appears after submission)
   ========================================================================== */
.service-notice-card {
  display: none;
  animation: fadeIn 0.25s ease;
}

.service-notice-card.visible {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice-banner {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}

.notice-icon-wrap {
  font-size: 28px;
  margin-bottom: 10px;
}

.notice-headline {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.notice-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 18px;
}

.btn-reset-number {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-reset-number:hover {
  background: #d8a941;
  border-color: #d8a941;
  color: #0b0e14;
}

/* Minimal Footer */
.login-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #090c10;
  padding: 20px 0;
  font-size: 12px;
  color: #687383;
}

.login-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  gap: 18px;
}

.footer-legal-links a {
  color: #8c97a7;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #d8a941;
}

@media (max-width: 500px) {
  .login-card {
    padding: 28px 20px;
  }
  .login-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
