/* ==========================================================================
   RAMA IRON - COMPLETE LOGIN CSS
   ========================================================================== */

/* -------------------------------------------------------------
   1. Typography & Labels
------------------------------------------------------------- */
.form-label,
.light-color-text {
    color: #495057 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.text-muted,
.text-sub-hint {
    color: #8c959f !important;
    font-size: 0.85rem !important;
}

/* -------------------------------------------------------------
   2. Standalone Inputs (Email / Phone Number)
------------------------------------------------------------- */
#loginForm > div > .form-control,
#loginForm #loginIdentifier {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    color: #212529 !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    outline: none !important;
}

#loginForm > div > .form-control::placeholder,
#loginForm #loginIdentifier::placeholder {
    color: #adb5bd !important;
}

#loginForm > div > .form-control:focus,
#loginForm #loginIdentifier:focus {
    border-color: #ced4da !important;
    box-shadow: none !important;
}

/* -------------------------------------------------------------
   3. Verification Box & Joined OTP Input Group
------------------------------------------------------------- */
/* Outer grey container */
.bg-grey-light {
    background-color: #f4f6f8 !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Inner white rounded wrapper holding input + button */
.bg-grey-light .input-group {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
    box-shadow: none !important;
}

/* OTP Input: Flat right edge with NO border radius to meet button flush */
.bg-grey-light .input-group .form-control {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-right: 0 !important;
    padding: 12px 16px !important;
    color: #212529 !important;
    box-shadow: none !important;
    outline: none !important;
}

.bg-grey-light .input-group .form-control:focus {
    border: none !important;
    box-shadow: none !important;
}

.bg-grey-light .input-group .form-control::placeholder {
    color: #adb5bd !important;
}

/* -------------------------------------------------------------
   4. OTP Button & Resend States
------------------------------------------------------------- */
/* Active state: Solid Brand Green */
.btn-theme-otp {
    background-color: #215f3c !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 10px 24px !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
}

.btn-theme-otp:hover {
    background-color: #17472c !important;
    color: #ffffff !important;
}

/* Disabled / Countdown: Light Grey with Dark Text */
.btn-theme-otp:disabled {
    background-color: #f1f3f5 !important;
    border-left: 1px solid #dee2e6 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    color: #6c757d !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* -------------------------------------------------------------
   5. Submit Button (Yellow / Amber Pill)
------------------------------------------------------------- */
.btn-next,
.btn-theme-submit {
    background-color: #fcae17 !important;
    border: none !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border-radius: 50rem !important;
    padding: 14px 20px !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease !important;
}

.btn-next:hover,
.btn-theme-submit:hover {
    opacity: 0.92 !important;
    color: #000000 !important;
}

/* -------------------------------------------------------------
   6. Alert Notifications (Light Theme)
------------------------------------------------------------- */
#response .alert {
    display: flex !important;
    align-items: center !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin-bottom: 0;
}

#response .alert-success {
    background-color: #d7e8dd !important;
    color: #135336 !important;
}

#response .alert-success i {
    color: #135336 !important;
    font-size: 1.25rem !important;
    margin-right: 12px !important;
}

#response .alert-danger {
    background-color: #fde8e8 !important;
    color: #9b1c1c !important;
}

#response .alert-danger i {
    color: #9b1c1c !important;
    font-size: 1.25rem !important;
    margin-right: 12px !important;
}

#response .alert .btn-close {
    margin-left: auto !important;
    opacity: 0.55 !important;
    box-shadow: none !important;
    outline: none !important;
}

#response .alert .btn-close:hover {
    opacity: 1 !important;
}

/* -------------------------------------------------------------
   7. Links
------------------------------------------------------------- */
.dark-color-text,
a.text-dark {
    color: #212529 !important;
}

.dark-color-text:hover,
a.text-dark:hover {
    color: #000000 !important;
}

/* ==========================================================================
   8. DARK THEME SPECIFICATIONS (body.dark-theme)
   ========================================================================== */
body.dark-theme {
    background-color: #161819 !important;
    color: #e4e6eb !important;
}

body.dark-theme .form-label,
body.dark-theme .light-color-text {
    color: #d1d5db !important;
}

body.dark-theme .text-muted,
body.dark-theme .text-sub-hint {
    color: #8c9096 !important;
}

/* Standalone Input in Dark Mode */
body.dark-theme #loginForm > div > .form-control,
body.dark-theme #loginForm #loginIdentifier {
    background-color: #242628 !important;
    border: 1px solid #33363a !important;
    color: #ffffff !important;
}

body.dark-theme #loginForm > div > .form-control::placeholder,
body.dark-theme #loginForm #loginIdentifier::placeholder {
    color: #6c7179 !important;
}

/* Outer Box in Dark Mode */
body.dark-theme .bg-grey-light {
    background-color: rgb(255 255 255 / 5%) !important;
}

/* Inner Input Group in Dark Mode */
body.dark-theme .bg-grey-light .input-group {
    background-color: #242628 !important;
    border: 1px solid #33363a !important;
}

body.dark-theme .bg-grey-light .input-group .form-control {
    background-color: #242628 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
}

body.dark-theme .bg-grey-light .input-group .form-control::placeholder {
    color: #6c7179 !important;
}

/* Buttons in Dark Mode */
body.dark-theme .btn-theme-otp {
    background-color: #215f3c !important;
    color: #ffffff !important;
}

body.dark-theme .btn-theme-otp:disabled {
    background-color: #2b2d30 !important;
    border-left: 1px solid #33363a !important;
    border-radius: 0 !important;
    color: #8e9297 !important;
}

body.dark-theme .btn-next,
body.dark-theme .btn-theme-submit {
    background-color: #fcae17 !important;
    color: #000000 !important;
}

/* Links in Dark Mode */
body.dark-theme .dark-color-text,
body.dark-theme a.text-dark {
    color: #ffffff !important;
}

/* Dark Theme Alerts */
body.dark-theme #response .alert-success {
    background-color: rgb(33 95 60 / 25%) !important;
    border: 1px solid rgb(33 95 60 / 25%) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
}

body.dark-theme #response .alert-success i {
    color: rgb(255 255 255 / 75%) !important;
    font-size: 1.3rem !important;
    margin-right: 12px !important;
}

body.dark-theme #response .alert-danger {
    background-color: #381a1d !important;
    border: 1px solid #842029 !important;
    color: #ea868f !important;
}

body.dark-theme #response .alert-danger i {
    color: #ea868f !important;
}

/* Dark Theme Close Button (Explicit Clean SVGs) */
body.dark-theme #response .alert .btn-close {
    filter: none !important;
    opacity: 0.85 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease !important;
}

body.dark-theme #response .alert .btn-close:hover {
    opacity: 1 !important;
}

body.dark-theme #response .alert-success .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
}

body.dark-theme #response .alert-danger .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ea868f'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
}


/* Validation Text Colors */
.text-error { color: #dc3545 !important; } /* */
.text-valid { color: #198754 !important; } /* */
.text-pending { color: #fd7e14 !important; } /* */
.password-input-group{
    position: relative;
}
.password-input-group span{
    width: 40px;
  height: 40px;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
}
#passwordchange{
    padding-right:50px;
}
.main-container {
    background: white;
    border-radius: 24px; /* Matches rounded corners in image_9c861c.jpg */
    overflow: hidden;
    margin: 60px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.dark-theme .main-container {
    background: #1f1f20;
    color: #ffffff;
}
.dark-text-link{
    color: #333;
}

.side-img {
    background: url('../images/user-login.webp') center/cover no-repeat;
    min-height: 100%;
}

.form-label { font-size: 0.85rem; color: #6c757d; margin-bottom: 4px; }
.dark-theme .form-label{
    color: rgba(255,255,255,0.5);
}
.form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
}

.forgot-text {
    font-size: 0.8rem;
    text-decoration: none;
    color: #333;
    display: block;
    text-align: right;
    margin-top: 5px;
}
.dark-theme .forgot-text{
    color: rgba(255,255,255,0.5);
}
/* Existing user info box */
.existing-user-alert {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.btn-login, .btn-login:hover, .btn-login:focus, .btn-login:active {
    background-color: rgb(250, 204, 21);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    color: #000;
    width: 100%;
}

.login-footer-link { font-size: 0.75rem; color: #6c757d; text-decoration: none; }
.login-footer-link:hover { text-decoration: underline; }

.password-input-group{
    position: relative;
}
.password-input-group span{
    width: 40px;
  height: 40px;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
}
#passInput{
    padding-right:50px;
}
@media (max-width: 575px) {
    .main-container {
        margin: 40px auto;
    }
    .main-container h3{
        font-size: 22px;
    }
}