/* ===================================
   Nayara Energy - Login Page Styles
   Two-section layout: body (card centered) + footer
   Fits 100vh, no scroll
   =================================== */

/* ===================================
   Variables
   =================================== */


:root {
    --nayara-blue: #004282;
    --nayara-blue-hover: #0558aa;
    --nayara-border: #D8D8D8;
    --nayara-text-dark: #231f20;
    --nayara-text-muted: #000;
    --nayara-placeholder: #888888;
    --nayara-link: #00adcc;
    --nayara-focus: #1f59a9;
}

/* ===================================
   Body - full viewport, flex column, no scroll
   =================================== */

/* Chrome, Edge, Safari */

body{
    font-family: "Lato", sans-serif;
    font-size: 12px;
    background: #FAFAFA;
    margin-bottom: 0px;
    /* padding: 20px; */
}   

body.login-page {
    height: 100vh;
    overflow-y: auto;
    margin: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    background-image: url('/assets/images/auth/fleetplus_login_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a2332;
    position: relative;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 28, 52, 0.6);
    z-index: 0;
    pointer-events: none;
}

/* ===================================
   BODY section - flex-grow, centers the card
   =================================== */
.login-body {
    flex: 1;
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 1rem;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Tall auth screens (e.g. change password): default center + overflow:hidden clips the top when content > viewport */
.login-body.login-body-tall {
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}


/* ===================================
   FOOTER section - pinned to bottom
   =================================== */
.login-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0 10px 10px 10px;
    text-align: center;
    color: rgba(255, 255, 255);
    position: relative;
    z-index: 1;
}

.login-wrapper {
    display: flex;
    /* height: 620px; */
    width: 100%;
    /* height: 100%; */
}
/* ===================================
   Login Card
   =================================== */
.login-card {
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 0px;
    /* padding: 30px; */
}
/* RIGHT SIDE - IMAGE */
.right-side-img {
    width: 65%;
    /* height: 100%; */
}

.right-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 25px;
    border-radius: 50px;
}

.login-card .card-body {
    /* display: block !important; */
    padding: 25px 0;
    max-width: 360px;
    width: 100%;
}
.header-text {
    /* border-bottom: 1px solid #ccc; */
    margin-bottom: 5px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-card .card-body {
        padding: 28px 20px;
    }
}

/* ===================================
   Logo Section
   =================================== */
.login-card .login-logo-wrap {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card .login-logo-wrap img {
    max-height: 115px;
    width: auto;
    margin-bottom: 0px;
    /* margin-top: 30px; */
}

.login-card .fleet-logo-wrap {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.login-card .fleet-logo-wrap img {
    height: 25px;
    width: auto;
    margin-bottom: 0px;
}

/* ===================================
   Login Heading
   =================================== */
.login-card .login-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--nayara-text-dark);
    margin-bottom: 0px;
}

.login-card .login-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #6D6E71;
    padding-bottom: 10px;
    margin-bottom: 0;
}

/* ===================================
   Outlined Form Fields (floating label on border)
   =================================== */
.login-card .form-group-outlined {
    position: relative;
    margin-bottom: 15px;
}
.login-card .form-group-outlined label {
    /* position: absolute; */
    /* top: -9px; */
    /* left: 14px; */
    background-color: #ffffff;
    padding: 0 0 10px 0;
    font-size: 14px;
    color: #6D6E71;
    font-weight: 400;
    z-index: 10;
    line-height: 1;
}

.login-card .form-group-outlined input {
    width: 100%;
    padding: 6px 15px 6px 38px;
    border: 1px solid var(--nayara-border) !important;
    border-radius: 6px !important;
    font-size: 14px;
    color: #333;
    outline: none !important;
    box-shadow: none !important;
    font-family: "Lato", sans-serif;
    transition: border-color 0.2s ease;
    background: #fff;
    height: 36px;
}

.login-card .form-group-outlined input::placeholder {
    color: var(--nayara-placeholder);
}

.login-card .form-group-outlined input:focus {
    border-color: var(--nayara-focus) !important;
}

.login-card input,
.login-card textarea {
    -webkit-user-select: text;
    user-select: text;
}

.custom-password-input {
    height: 48px;
    border-radius: 10px;
    padding-left: 42px;
    padding-right: 45px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    box-shadow: none !important;
}
.custom-password-input:focus {
    border-color: #1f59a9;
    box-shadow: 0 0 0 3px rgba(31, 89, 169, 0.10) !important;
}

/* Left Lock Icon */

.input-left-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* Eye Icon */

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 16px;
    z-index: 5;
    line-height: 1;
}

.password-toggle-icon:hover {
    color: #1f59a9;
}

/* =========================================
   REMOVE DEFAULT EDGE / CHROME PASSWORD ICON
   Hide native reveal/autofill controls only — do NOT hide
   ::-webkit-textfield-decoration-container (breaks Safari typing).
========================================= */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

input[type="password"]::-webkit-password-toggle-button {
    display: none;
}

.login-card input[type="password"] {
    appearance: none;
    -moz-appearance: none;
}

/* ===================================
   Forgot Password
   =================================== */
.login-card .forgot-password-wrap {
    text-align: right;
    /* margin-top: 10px; */
    /* margin-bottom: 15px; */
}

.login-card .forgot-password-wrap a {
    font-size: 14px;
    color: #1F59A9;
    text-decoration: none;
    font-weight: 400;
}

.login-card .forgot-password-wrap a:hover {
    text-decoration: underline;
}

/* ===================================
   Login Button (centered, fixed width)
   =================================== */
.login-card .btn-login-wrap {
    display: flex;
    justify-content: center;
}

.login-page .btn-login-submit {
    width: 100%;
    max-width: 100%;
    background-color: var(--nayara-blue);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.login-page .btn-login-submit:hover {
    background-color: var(--nayara-blue-hover);
}

.login-page .btn-login-submit:focus {
    box-shadow: 0 0 0 2px rgba(39, 66, 116, 0.3);
}

/* Keep .btn-primary for OTP and other buttons */
.login-page .btn-primary:not(.btn-login-submit) {
    background-color: var(--nayara-blue);
    border: none;
}

.login-page .btn-primary:not(.btn-login-submit):hover {
    background-color: var(--nayara-blue-hover);
}

/* ===================================
   Captcha (compact)
   =================================== */
.login-card .captcha-row .captcha-input {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.login-card .captcha-image {
    background: var(--nayara-blue);
    border-radius: 6px;
}
.login-card .captcha-refresh {
    padding: 3px 10px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
}
.login-card .captcha-refresh:hover {
    background: #1F59A9;
    border: 1px solid #1F59A9;
}
.login-card .captcha-refresh:hover i {
    color: #fff !important;
}
.btn-login-submit {
    background: #0AB39C;
    width: 100%;
    padding: 8px;
    text-transform: capitalize;
    color: #fff;
    margin-top: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}
.btn-login-submit:hover, 
.btn-login-submit:focus, 
.btn-login-submit:active {
    background-color: #099682 !important;
    color: #fff !important;
}

/* ===================================
   Input groups (OTP section)
   =================================== */
.login-card .input-group {
    border-radius: 8px;
}

.login-card .input-group .input-group-text {
    background: #f8f9fa;
    border: 1px solid var(--nayara-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.login-card .input-group .form-control {
    border-left: none;
}

.login-card .input-group:focus-within .input-group-text {
    border-color: var(--nayara-focus);
}

/* ===================================
   Alerts & Messages
   =================================== */
.login-card #message {
    border-radius: 6px;
}

/* ===================================
   OTP - Method Selection Card
   =================================== */
.otp-section {
    margin-top: 8px;
}

.otp-method-card {
    background: #f5f6f8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.otp-method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.otp-method-header .method-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--nayara-blue);
}

.otp-method-header .method-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--nayara-text-dark);
}

.otp-method-details {
    list-style: disc;
    padding-left: 60px;
    margin: 0;
}

.otp-method-details li {
    font-size: 15px;
    color: #333;
    font-weight: 400;
}

/* ===================================
   OTP - Digit Input Boxes
   =================================== */
.otp-digit-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.otp-digit-inputs .otp-box {
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1.5px solid var(--nayara-border);
    border-radius: 8px;
    outline: none;
    background: #f5f6f8;
    color: var(--nayara-text-dark);
    transition: border-color 0.2s;
}

.otp-digit-inputs .otp-box:focus {
    border-color: var(--nayara-blue);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(39, 66, 116, 0.15);
}

/* ===================================
   OTP - Timer
   =================================== */
.otp-timer {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #f10842;
    margin: 16px 0 8px;
}

/* ===================================
   OTP - Resend Link
   =================================== */
.otp-resend-wrap {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.otp-resend-wrap a {
    color: var(--nayara-link);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.otp-resend-wrap a:hover {
    text-decoration: underline;
}

.otp-resend-wrap a.disabled {
    color: #aaa;
    pointer-events: none;
    text-decoration: none;
}

/* ===================================
   OTP - Full-width Submit Button
   =================================== */
.otp-btn-wrap {
    margin-bottom: 16px;
}

.btn-otp-submit {
    width: 100%;
    background-color: #0AB39C;
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    letter-spacing: 1px;
    /* height: 46px; */
}

.btn-otp-submit:hover {
    background-color: #0AB39C;
    color: white;
}

.btn-otp-submit:focus {
    box-shadow: 0 0 0 2px rgba(39, 66, 116, 0.3);
    color: white;
    background-color: #0AB39C;
}

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

/* ===================================
   OTP - Change Method Link
   =================================== */
.otp-change-method {
    text-align: center;
    margin-top: 4px;
}
.otp-change-method a {
    font-size: 14px;
    color: var(--nayara-link);
    text-decoration: none;
    font-weight: 500;
}
.otp-change-method a:hover {
    text-decoration: underline;
}

.login-back-link-wrap {
    text-align: center;
    margin-top: 16px;
}

.login-back-link-wrap a {
    font-size: 14px;
    color: var(--nayara-link);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-back-link-wrap a:hover {
    text-decoration: underline;
}

h5.modal-title {
    font-size: 16px;
    font-weight: 600;
}

/* Login auth modals — Forgot Password / Unlock User (match active-session popup) */
.login-auth-modal-dialog {
    max-width: 390px;
    width: 100%;
}

.login-auth-modal .modal-content {
    border-radius: 8px;
    overflow: hidden;
}

.login-auth-modal .modal-header {
    background-color: #0AB39C;
}

.login-auth-modal .modal-body {
    font-size: 14px;
    color: #231f20;
}

.login-auth-modal-intro,
.login-auth-modal-status {
    font-size: 14px;
    line-height: 1.5;
    color: #231f20;
    margin-bottom: 1rem;
}

.login-auth-modal .modal-body .fw-normal.pb-1 {
    font-size: 14px;
    color: #231f20;
    font-weight: 400;
}

.login-auth-modal .modal-body .form-control {
    font-size: 14px;
    padding: 7px 10px;
    color: #231f20;
    border: 1px solid var(--nayara-border);
    border-radius: 6px;
}

.login-auth-modal-banner {
    font-size: 14px;
    line-height: 1.5;
    color: #231f20;
    margin-bottom: 12px;
}

.login-auth-modal-banner-danger {
    color: #dc3545;
}

.login-auth-modal-resend {
    font-size: 14px;
}

.login-auth-modal-resend a {
    color: #1F59A9;
    text-decoration: none;
    font-weight: 500;
}

.login-auth-modal-resend a:hover {
    text-decoration: underline;
}

.login-auth-modal-resend a.disabled {
    color: #aaa;
    pointer-events: none;
    text-decoration: none;
}

.login-auth-modal .modal-footer .btn {
    font-size: 14px;
}

/* Match post-login modal buttons (button.css not loaded on login layout) */
.login-auth-modal .modal-footer .btn.btn_primary {
    width: auto !important;
    max-width: none !important;
    min-width: 70px;
    display: inline-block !important;
    flex: 0 0 auto;
    background-color: #0ab39c !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.login-auth-modal .modal-footer .btn.btn_primary.login-auth-btn-hidden {
    display: none !important;
}

.login-auth-modal .modal-footer .btn.btn_primary:hover,
.login-auth-modal .modal-footer .btn.btn_primary:focus,
.login-auth-modal .modal-footer .btn.btn_primary:active,
.login-auth-modal .modal-footer .btn.btn_primary:focus-visible {
    background-color: #099682 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1;
}

.input-wrapper {
    position: relative;
}
.input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bdbaba;
    font-size: 20px;
}

/* Add space so text doesn't overlap icon */

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
}
.captcha-row input {
    padding: 8px 15px !important;
}
input::placeholder {
    color: #d8d8d8 !important;
}
.btn_primary {
  background-color: #0ab39c;
  color: #fff;
  padding: 7px 12px;
  font-size: 14px;
  height: 36px;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}
/* Hover / Focus / Active */
.btn_primary:hover,
.btn_primary:focus,
.btn_primary:active {
  background-color: #099682;
  color: #fff;
  border: none;
}

@media (max-width: 999px) {
    .login-body{
        display: block;
    }
    .login-card{
        width:100%;
        padding: 15px;
    }
    .login-card .card-body{
        max-width: 100%;
        width: 100%;
        padding: 0px;
    }
    .login-wrapper{
        width: 100%;
        height: auto;
        display: block;
    }
    .right-side-img img{
        display: none;
    }
}