.e4g-otp-login-form {
  width: 400px;
  margin: auto;
}

.e4g-login-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    text-align: center;
}

.e4g-login-branding .e4g-logo img {
    width: auto;
    max-height: 80px;
    transition: transform 0.3s;
}

.e4g-login-branding #otp-icon {
  font-size: 52px;
  line-height: 1;
  padding: 12px;
  background: linear-gradient(180deg, #fff, transparent);
  border-radius: 999px;
  box-shadow: 0 -4px 2px 0 rgba(0,0,0,0.05);
  color: #475569;
}

/* Was #141b38 -- navy, written for a white card. On a dark one it made the
   number the code was sent to all but invisible. The .e4g-login-description
   rule below also colours it, but at equal specificity only by coming later
   in the file; this removes the conflict instead of relying on order. */
.e4g-login-branding b {
  color: var(--e4g-brand, #e97510);
}


.e4g-login-title {
  font-size: 30px;
  color: #141b38;
  line-height: 1.6;
  font-weight: bold;
  font-family: inherit;
  margin: 0;
}

.e4g-login-description {
    font-size: 16px;
    color: #434960;
}

/* The number itself, which the script writes in as <b>. Left to the theme it
   inherited whatever that gives bold text -- on this store a dark slate blue,
   which on a dark card is all but invisible. It is the one piece of this line
   the customer needs to read, so it is stated here. */
.e4g-login-description b,
.e4g-login-description strong {
    color: var(--e4g-brand, #e97510);
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.e4g-tabs {
    margin-bottom: 16px;
}

.e4g-tab-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 10px;
    overflow: scroll;
    margin: 0;
    flex-wrap: nowrap;
    align-items: stretch;
    background-color: #f3f4f6;
    padding: 2px !important;
    min-height: 42px;
    scrollbar-width: none;
}

.e4g-tab-list .e4g-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 500;
    color: #6f7899;
    border-radius: 8px;
    font-size: 14px;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

.e4g-tab-list .e4g-tab.active {
  background-color: #fff;
  color: #141b38;
  box-shadow: 0 0 0 1px #2c405e0f,0 1px 1px #2c405e0a,0 2px 4px #2c405e14;
}

.e4g-tab-list .e4g-tab:hover {
    color: #141b38;
}

.e4g-tab-content .e4g-tab-pane {
    display: none;
}

.e4g-tab-content .e4g-tab-pane.active {
    display: block;
}

.e4g-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #434960;
    font-size: 12px;
    text-transform: capitalize;
}

.e4g-form-group input[type="text"],
.e4g-form-group input[type="email"],
.e4g-form-group input[type="password"],
.e4g-form-group input[type="url"],
.e4g-form-group textarea {
    padding: 0 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: #fff;
    font-family: inherit;
    width: 100%;
    height: 48px;
    max-height: 48px;
}
#e4g_phone {
  width: 100%;
}
.e4g-form-group input[type="text"]:focus,
.e4g-form-group input[type="email"]:focus,
.e4g-form-group input[type="password"]:focus,
.e4g-form-group input[type="url"]:focus,
.e4g-form-group textarea:focus {
    border-color: #004444;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

#e4g_whatsapp {
  min-width: 100%;
}

.e4g-btn {
    width: 100%;
    height: 48px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all .2s ease-in-out;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    color: #fff;
    text-decoration: none !important;
}

.e4g-btn:hover {
    opacity: .8;
}

.e4g-btn [class*=" ri-"], .e4g-btn [class^="ri-"] {
    font-weight: 500 !important;
    font-size: 20px;
}

#e4g-otp-login-form-whatsapp .e4g-submit-button {
  background-color: #E97510;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease,color 0.3s ease;
}

.e4g-resend-otp-btn {
  background: #f1f1f1;
  color: #141b38 !important;
  border: 1px solid #ddd !important;
  margin-top: 8px;
}



/* Container for the messages */
#e4g_login_message_whatsapp,
#e4g_login_message_email,
#e4g_login_message_email_password {
    margin: 16px 0;
    text-align: center;
}

/* Error & success messages */
#e4g_login_message_whatsapp .error,
#e4g_login_message_email .error,
#e4g_login_message_email_password .error {
    color: #b91c1c;
    font-weight: 600;
    background-color: #fecaca;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0;
    font-size: 14px;
}

#e4g_login_message_whatsapp .success,
#e4g_login_message_email .success,
#e4g_login_message_email_password .success {
    color: #15803d;
    font-weight: 600;
    background-color: #e0faec;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0;
    font-size: 14px;
}

.e4g-resend-timer {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.e4g-otp-login-form .e4g-edit-button {
    cursor: pointer;
    /* Was #05f -- a light-theme link blue. On a dark card it reads as an
       unstyled browser link rather than part of the form. */
    color: var(--e4g-brand, #e97510);
    text-decoration: none;
    transition: opacity .5s ease;
}

.e4g-otp-login-form .e4g-edit-button:hover {
    opacity: .7;
}

/* The same light-theme link blue as the edit button had, with the same
   result on a dark card. */
#signup_toggle,
#login_toggle {
  color: var(--e4g-brand, #e97510);
}

/* #login_toggle:hove -- the selector was missing its last letter, so this
   never applied to the login toggle at all. */
#signup_toggle:hover,
#login_toggle:hover {
  opacity: .8;
}

.e4g-switch-form {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
}

/* Separator line */
.e4g-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
}

.e4g-separator::before,
.e4g-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.e4g-separator::before {
    margin-right: 16px;
}

.e4g-separator::after {
    margin-left: 16px;
}

.e4g-separator span {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 14px;
}

.password-container {
  position: relative;
  display: flex;
  justify-content: end;
  align-items: center;
}

.show-hide-icon {
  position: absolute;
  top: 50%;
  margin-inline-end: 16px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: #555;
}

.hidden {
  display: none;
}

.show-hide-icon:hover {
  color: #000;
}

.iti {
  width: 100%;
}
    


/* Responsive Design */
@media (max-width: 768px) {
    .e4g-otp-login-form {
        width: 100%;
    }
    
    .e4g_redirect_rule {
        flex-direction: column;
        align-items: flex-start;
    }

    .e4g_redirect_rule .rule-fields {
        flex-direction: column;
        width: 100%;
    }

    .e4g_redirect_rule .rule-fields select.e4g_redirect_role,
    .e4g_redirect_rule .rule-fields input.e4g_redirect_url {
        width: 100%;
    }

    .e4g-login-method-radio {
        flex-direction: column;
    }

    .e4g-login-method-radio .e4g-radio-label {
        width: 100%;
    }
}


/* The resend countdown.
   The script inserts this directly after the Resend button, meaning it to sit
   underneath -- it even carries margin-top. But the line it lands in is a flex
   row, so it became another item in that row, pushed alongside "Resend code"
   and off the edge of a phone screen. Given a full basis it wraps onto its own
   line, which is what the markup intended. */
.e4g-otp-resend-line .e4g-resend-timer,
.e4g-resend-timer {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
}

/* The "re-enter" controls are real buttons now (focusable, keyboard
   operable); shown as the text links they always were. */
.e4g-otp-login-form button.e4g-edit-button,
#e4g-signup-container button.e4g-edit-contact-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  box-shadow: none;
}
