/* ==========================================================================
   Razorpay-style Auth Flow — shared stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --rp-darkgreen: #0a401a;
    --rp-green: #33ff6d;
    --rp-green-dark: #1adb46;
    --rp-darkgreen: #38df5d;
    --rp-darkgreen-dark: #27b845;
    --rp-green: #0d9f6e;
    --rp-text: #1a2e1d;
    --rp-text-muted: #6b7280;
    --rp-border: #e2eae4;
    --rp-border-focus: #38df5d;
    --rp-bg-panel: #ffffff;
    --rp-bg-page: #f7fcf8;
    --rp-error: #e0393e;
    --rp-radius: 10px;
    --rp-radius-lg: 16px;
    --rp-shadow: 0 2px 8px rgba(10, 64, 26, 0.06);
    --rp-shadow-lg: 0 12px 32px rgba(10, 64, 26, 0.10);
    --font-display: 'Poppins', 'Inter', sans-serif;
    --font-body: 'Poppins';
    --brand-seagreen: #004d1d;
    --accent-green: #0b6b32;
    --input-bg: #f4f9f6;
    --text-color: #2BCF23;
    --new-bg-light: #60FB42;
    --new-bg-dark: #024a00;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  color: #fff;
  background: var(--rp-bg-page);
  -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-color);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }

::selection { background: #cfffdb; }

label input[type="checkbox"] {
    accent-color: #024a00;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-visual {
    position: relative;
    flex: 1 1 55%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #000 !important;
    background-image: radial-gradient( circle at 75% 65%, rgba(2, 74, 0, 0.35), transparent 38% ), repeating-linear-gradient( 120deg, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 70px ), linear-gradient( 135deg, #000000 0%, #021002 50%, #000000 100% ) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    repeating-linear-gradient(
      118deg,
      rgba(51, 255, 109, 0.10) 0px,
      rgba(51, 255, 109, 0.10) 2px,
      transparent 2px,
      transparent 60px
    );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.auth-visual::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(13,159,110,0.10), transparent 70%);
  pointer-events: none;
}

.brand-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--rp-darkgreen);
}

.brand-mark svg { width: 24px; height: 24px; }

.visual-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

    .visual-copy h1 {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: clamp(28px, 3.4vw, 40px);
        line-height: 1.2;
        background: #0b6b32;
        background-clip: text;
        color: transparent;
        margin-bottom: 28px;
    }

.visual-features {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
}

    .visual-features span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        font-size: 15px;
        color: var(--new-bg-light);
    }

    .visual-features span::before {
        content: "+";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        color: var(--accent-green) !important;
        font-weight: 700;
    }

.auth-panel {
  flex: 1 1 45%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 40px 32px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: #000 !important;
    background-image: linear-gradient(135deg, var(--new-bg-light), var(--new-bg-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    /* box-shadow: 0 12px 24px rgba(115, 255, 166,0.35); */
}

.auth-icon svg { width: 26px; height: 26px; }

.auth-welcome {
    font-size: 14px;
    color: #fff;
    margin-bottom: 6px;
}

    .auth-welcome strong {
        color: var(--text-color);
    }

.auth-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.25;
    color: #ffff;
    margin-bottom: 5px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--rp-text-muted);
  margin-bottom: 24px;
}

.auth-subtitle .value { color: #fff; font-weight: 500; }

/* ---------------- Form elements ---------------- */
/*.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom:25px;
}*/

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

    .field-grid .full-width {
        grid-column: 1 / -1;
    }

@media (max-width: 767px) {
    .field-grid {
        grid-template-columns: 1fr;
    }

        .field-grid .full-width {
            grid-column: auto;
        }
}
.field { margin-bottom: 18px; }

    .field label {
        display: block;
        font-size: 13.5px;
        font-weight: 500;
        color: #fff;
        margin-bottom: 8px;
    }

.input,
select.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--rp-text);
  background: #fff;
  border: 1.5px solid var(--rp-border);
  border-radius: var(--rp-radius);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}

    .input:focus,
    select.input:focus {
        border-color: var(--text-color); /*
  box-shadow: 0 0 0 3px rgba(56, 223, 93, 0.12);*/
    }

.input.has-error { border-color: var(--rp-error); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--rp-text-muted);
  border-bottom: 2px solid var(--rp-text-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select { padding-right: 40px; }

.country-flag { font-size: 13px; color: var(--rp-text-muted); margin-right: 6px; }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 44px; }
.toggle-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  color: var(--rp-text-muted);
  display: flex;
}
.toggle-eye svg { width: 20px; height: 20px; }

.error-text {
  display: none;
  font-size: 12.5px;
  color: var(--rp-error);
  margin-top: 6px;
}
.error-text.show { display: block; }

.hint-text {
  font-size: 12.5px;
  color: var(--rp-text-muted);
  margin-top: 6px;
}

.btn-primary {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--rp-radius);
    background: linear-gradient(135deg, var(--new-bg-light), var(--new-bg-dark));
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
   /* box-shadow: 0 12px 24px rgba(115, 255, 166,0.35);*/
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

    .btn-primary:hover {
        box-shadow: 0 7px 18px #27C91F35;
        transform: translateY(-1px);
    }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-primary .spinner {
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.btn-primary.loading .spinner { display: inline-block; }
.btn-primary.loading .btn-label { opacity: .85; }

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

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--rp-text-muted);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rp-border);
}

.btn-google {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--rp-border);
  border-radius: var(--rp-radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--rp-text);
  transition: background .15s ease, border-color .15s ease;
}
.btn-google:hover { background: #f7fcf8; border-color: #c9dacd; }
.btn-google svg { width: 19px; height: 19px; }

.auth-foot {
  margin-top: 22px;
  font-size: 13.5px;
  color: #fff;
  text-align: center;
}

.auth-legal {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.6;
  color: #fff;
}

.partner-box {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--rp-bg-page);
  border-radius: var(--rp-radius);
  font-size: 13.5px;
  color: var(--rp-text-muted);
}
.partner-box a { font-weight: 600; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
}
.back-link svg { width: 16px; height: 16px; }
    .back-link:hover {
        color: var(--text-color);
        text-decoration: none;
    }

/* ---------------- OTP boxes ---------------- */

.otp-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.otp-box {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border: 1.5px solid var(--rp-border);
  border-radius: var(--rp-radius);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.otp-box:focus {
  border-color: var(--rp-border-focus);
  box-shadow: 0 0 0 3px rgba(56, 223, 93, 0.12);
}

.otp-box.filled { border-color: #b9f2c5; background: #f5fff7; }
.otp-box.error { border-color: var(--rp-error); }

.otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.resend-link {
  font-size: 13.5px;
  font-weight: 600;
}

.resend-link.disabled {
  color: var(--rp-text-muted);
  pointer-events: none;
  text-decoration: none;
}

.change-link { font-size: 13.5px; font-weight: 500; }

/* ---------------- Success / verified detail page ---------------- */

.success-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #17c98b, #0d9f6e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(13, 159, 110, 0.28);
}
.success-badge svg { width: 30px; height: 30px; }

.detail-list {
    border: 1.5px solid #60FB42;
    border-radius: var(--rp-radius-lg);
    overflow: hidden;
    margin-bottom: 22px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1.5px solid #60FB42;
    background: #000;
}
.detail-row:last-child { border-bottom: none; }
    .detail-row:nth-child(even) {
        background: #000;
    }

.detail-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--rp-text-muted);
  margin-bottom: 3px;
}

.detail-value {
    font-size: 14.5px;
    font-weight: 600;
    color: #60FB42;
    word-break: break-all;
}

.detail-main { min-width: 0; flex: 1; }

.copy-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #62ad74;
    background: #3c733f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64e03e;
    transition: all .15s ease;
}
.copy-btn svg { width: 16px; height: 16px; }
    .copy-btn:hover {
        border-color: var(--new-bg-light);
        color: var(--new-bg-light);
    }
.copy-btn.copied { border-color: var(--rp-green); color: var(--rp-green); background: #eafbf3; }

.copy-all-btn {
    width: 100%;
    height: 46px;
    border-radius: var(--rp-radius);
    border: 1.5px solid #60FB42;
    background: #000;
    color: #60FB42;
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s ease;
}
.copy-all-btn:hover { background: #f3fff6; }
.copy-all-btn svg { width: 17px; height: 17px; }

.redirect-note {
  text-align: center;
  font-size: 13px;
  color: var(--rp-text-muted);
  margin-top: 16px;
}
    .redirect-note strong {
        color: var(--new-bg-light);
    }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--rp-darkgreen);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Email template preview wrapper (for email-template.html) ---------------- */

.email-page-bg {
  background: #eef6f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ---------------- Responsive ---------------- */

/*@media (max-width: 980px) {
  .auth-visual { display: none; }*/
 /* .auth-panel { flex: 1 1 100%;min-height: auto; }*/
    /*.auth-panel {
        flex: 1 1 100%;
        min-height: auto;
        height: auto;
        padding: 30px 20px;
        align-items: flex-start;
    }
}*/

@media (max-width: 980px) {
    html,
    body {
        height: auto;
        min-height: 100%;
    }

    .auth-shell {
        min-height: 100dvh;
        height: auto;
        display: flex;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        flex: 1 1 100%;
        min-height: 100dvh;
        height: auto;
        padding: 30px 20px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
  .otp-box { width: 44px; height: 50px; font-size: 19px; }
  .otp-row { gap: 8px; }
  .auth-title { font-size: 24px; }
}

.d-none{
    display:none;
}
