
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    
    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

/* Overlay Effect */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Main Wrapper */
/* Wrapper */
.main-wrapper{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* Logo Outside Card */
.logo-wrapper{
    margin-bottom: 15px;
    text-align: center;
}

.logo-img{
    /* width: 150px; */
    height: 200px;
}

/* Login Card */
.login-card {
    width: 100%;
    max-width: 420px;   /* Reduced width */
    height: fit-content;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 25px 25px 15px;   /* Reduced padding */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #dddddd;
}

/* Title */
.login-title {
    text-align: center;
    color: #b81426;
    font-weight: 700;
    font-size: 38px;
    margin-bottom: 10px;
}

/* Divider */
.divider{
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #FFC700;
}

.divider span {
    color: #FFC700;
    font-size: 16px;
    margin: 0 15px;
}

/* Register Text */
.register-text {
    text-align: center;
    font-size: 15px;
    margin-bottom: 20px;
    color: #222;
}

.register-text a {
    color: #c21b2e;
    text-decoration: none;
    font-weight: 500;
}

.register-text a:hover {
    text-decoration: underline;
}

/* Labels */
.form-label {
    font-size: 15px;
    font-weight: 500;
    color: #5a5a5a;
    margin-bottom: 8px;
}

.form-label i{
    color: #c21b2e;
}

.form-label .fa-phone,
.form-label .fa-lock{
    color: #c21b2e !important;
}

.form-label span {
    color: #c21b2e;
}

/* Inputs */
.custom-input .form-control,
.custom-input .input-group-text {
    height: 52px;
    border: 1px solid #d8d8d8;
    background: #fff;
}

.custom-input .form-control {
    box-shadow: none;
    font-size: 15px;
}

.custom-input .form-control:focus {
    border-color: #c21b2e;
    box-shadow: none;
}

/* Country Code */
.country-code {
    color: #999;
    background: #fff;
    padding-inline: 15px;
}

/* Eye Icon */
.eye-icon {
    background: #fff;
    cursor: pointer;
    color: #777 !important;
}

/* Forgot Link */
.forgot-link {
    color: #c21b2e;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 0px;
    padding: 0px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Button */
.login-btn {
    background: #b81426;
    color: #fff;
    border: none;
    height: 45px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.login-btn:hover {
    background: #980f1f;
    color: #fff;
}

/* Terms */
.terms-text {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.terms-text a {
    color: #c21b2e;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Bells */
.bells-image{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    z-index: 1;
    pointer-events: none;
}
/* Remove Partition Line */
.password-box .form-control{
    border-right: 0 !important;
}

.password-box .eye-icon{
    border-left: 0 !important;
    background: #fff;
    cursor: pointer;
}

/* Remove Focus Shadow */
.password-box .form-control:focus{
    box-shadow: none;
}

/* Keep Full Border on Focus */
.password-box:focus-within{
    border-color:#c21b2e;
    box-shadow:none;
}

.password-box{
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    overflow: hidden;
}

.password-box .form-control,
.password-box .input-group-text{
    border:none !important;
}

.password-box .form-control:focus{
    box-shadow:none !important;
    border:none !important;
    outline:none !important;
}


/* ===================== REGISTER PAGE ===================== */

/* Card */
.register-card{
    width: 100%;
    max-width: 610px;
    background: #ffff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Title */
.register-title{
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111;
}


/* Inputs */
.custom-input{
    height: 46px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    font-size: 15px;
    color: #444;
    box-shadow: none !important;
}

.custom-input::placeholder{
    color: #9c9c9c;
}

.custom-input:focus{
    border-color: #c3162c;
}

/* Select */
select.custom-input{
    padding-right: 40px;
}

/* Button */
.continue-btn{
    height: 50px;
    background: #bd1027;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    transition: 0.3s;
}

.continue-btn:hover{
    background: #a20e22;
    color: #fff;
}

/* Secure Text */
.secure-text{
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #777;
}

.secure-text i{
    margin-right: 4px;
}

/* Step */
.step-text{
    text-align: right;
    margin-top: 18px;
    color: #c3162c;
    font-size: 18px;
    font-weight: 600;
}

/* =================== HOME PAGE================= */

.divider-home {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.divider-home::before,
.divider-home::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #c3162c;;
}

.divider-home span {
    
    font-size: 16px;
    margin: 0 15px;
}
.divider-home span img{
    filter: brightness(0) saturate(100%) invert(18%) sepia(88%) saturate(2860%) hue-rotate(341deg) brightness(88%) contrast(91%);
}


/* ====================== SIDEBAR AND MAIN CONTENT========================= */


.sidebar{
    width: 220px;
    min-height: 100vh;

    background: #ffffff;
    border-right: 1px solid #e6e6e6;

    display: flex;
    flex-direction: column;

    padding: 20px 15px;

    position: fixed;
    left: 0;
    top: 0;

    overflow: hidden;
}

.logo-section{
    text-align: center;
}

.sidebar-logo-img {
    width: 150px !important;
}

/* Menu */
.sidebar-menu{
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.sidebar-menu li{
    margin-bottom: 12px;
}

.sidebar-menu li a{
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    color: #444;
    font-size: 15px;
    transition: 0.3s;
}

.sidebar-menu li a i{
    font-size: 18px;
}

.sidebar-menu li.active a{
    background: #bf1028;
    color: #fff;
}

.sidebar-menu li.active a:hover{
    background: #a00f22;
    color: #fff;
}

.sidebar-menu li a:hover{
    background: #f4e8ea;
    color: #bf1028;
}

.sidebar-menu li.active a img{
    filter: brightness(0) invert(1);
}

.sidebar-menu li a:hover img{
    filter: brightness(0) saturate(100%) invert(13%) sepia(93%)
            saturate(3923%) hue-rotate(344deg) brightness(88%) contrast(94%);
}

/* Logout */
.logout-btn button{
    width: 100%;
    height: 50px;
    border: 1px solid #bf1028;
    background: transparent;
    border-radius: 12px;
    color: #bf1028;
    font-weight: 600;
}

.logout-btn{
    margin-top: auto;
}

.logout-btn button:hover{
    background: #bf1028;
    color: white;
}

/* ================= MAIN ================= */

.main-content{
    flex: 1;
    margin-left: 220px;
    min-height: 100vh;
    height: auto;

    padding: 25px 30px;

    overflow-x: hidden;

    background-image: url("assets/home_background.svg");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
}

/* Header */
.top-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.welcome-text{
    color: #B0182A;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}



.sub-text{
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

.profile-icon{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f8dede;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bf1028;
    font-size: 22px;
    position: relative;
    z-index: 1;
}



/* ================= Language Dropdown ================= */

.top-header{
    overflow: visible;
}

.main-content{
    overflow-x: hidden;
    overflow-y: auto;
}

.d-flex.align-items-center.gap-3{
    overflow: visible;
}

/* Language Selector */
.language-selector{
    width: 90px !important;
    height: 42px;

    color: #bf1028 !important;
    font-weight: 700;
    font-size: 16px;

    border: 2px solid #bf1028;
    border-radius: 10px;

    background-color: transparent !important;

    /* Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M2 5l6 6 6-6' stroke='%23bf1028' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;

    /* IMPORTANT */
    padding-left: 12px !important;
    padding-right: 10px !important;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    box-shadow: none !important;
}

.language-selector:focus{
    border-color: #bf1028;
    box-shadow: none !important;
}

.language-selector option{
    background: #ffffff;
    color: #333333;
    font-weight: 500;
}

/* Profile */

.profile-icon{
    z-index: 1;
}

/* Remove Bootstrap focus effect */

.form-select.language-selector{
    background-color: transparent !important;
}

/* Optional Glass Effect */

.language-selector{
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.login-btn:disabled {
    background: #b81426 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

.login-btn .spinner-border {
    width: 18px;
    height: 18px;
    border-width: 2px;
    vertical-align: middle;
}

.back-icon{
    font-size:28px;
    color:#bf1028;
    cursor:pointer;
    transition:0.3s;
}

.back-icon:hover{
    transform:translateX(-3px);
    color:#9e0d21;
}

@media (max-width: 991px){

    .sidebar{
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        border-right: none !important;
    }

    .main-content{
        margin-left: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 15px !important;
    }

    .sidebar-menu{
        display: flex;
        overflow-x: auto;
        gap: 10px;
        white-space: nowrap;
        margin-top: 15px;
    }

    .sidebar-menu li{
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .logout-btn{
        display: none;
    }

    .top-header{
        flex-direction: column;
        gap: 15px;
    }
}

@media(max-width:576px){

    .d-flex.align-items-center.gap-3{
        width:100%;
        justify-content:flex-start;
    }

    .language-selector{
        width:120px !important;
    }
}

@media (max-width: 991px){

    .wallet-wrapper{
        display:block !important;
    }

    .sidebar{
        position:relative !important;
        width:100% !important;
        min-height:auto !important;
        height:auto !important;
    }

    .main-content{
        margin-left:0 !important;
        width:100% !important;
        max-width:100% !important;
        padding:15px !important;
    }

    .top-header{
        flex-direction:column;
        align-items:flex-start;
    }
}

/* ================= SUCCESS MODAL ================= */

.success-modal .modal-dialog{
    max-width: 550px;
}

.success-modal-content{
    border: none;
    border-radius: 28px;

    background: #FEF7EF;

    overflow: hidden;

    position: relative;

    padding: 45px 35px;
}

/* Decoration */

.success-decoration{
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    pointer-events: none;
}

/* Success Icon */

.success-icon{

    width: 90px;
    height: 90px;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: rgba(25,135,84,0.1);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #198754;

    font-size: 50px;
}

/* Heading */

.success-modal-content h2{

    font-size: 28px;
    font-weight: 700;

    color: #000;

    margin-bottom: 12px;
}

/* Description */

.success-modal-content p{

    font-size: 15px;

    color: #666;

    margin-bottom: 25px;
}

/* Devotee ID Box */

.devotee-id-box{

    background: #fff;

    border: 2px dashed #be1025;

    border-radius: 16px;

    padding: 18px;

    margin-bottom: 30px;
}

.devotee-id-box h5{

    color: #be1025;

    font-size: 14px;

    margin-bottom: 10px;

    font-weight: 600;
}

.devotee-id-box h3{

    margin: 0;

    font-size: 24px;

    font-weight: 700;

    color: #000;

    letter-spacing: 1px;
}

/* Button */

.success-btn{

    width: 220px;
    height: 50px;

    border: none;

    border-radius: 16px;

    background: #be1025;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    transition: .3s;
}

.success-btn:hover{

    transform: translateY(-2px);

    background: #a90d20;
}

/* Responsive */

@media(max-width:576px){

    .success-modal-content{

        padding: 35px 20px;
    }

    .success-icon{

        width: 70px;
        height: 70px;

        font-size: 40px;
    }

    .success-modal-content h2{

        font-size: 22px;
    }

    .devotee-id-box h3{

        font-size: 18px;
    }

    .success-btn{

        width: 100%;
    }
}

#snackbar{
    visibility:hidden;

    min-width:300px;
    max-width:400px;

    background:#be1025;
    color:#fff;

    padding:14px 18px;

    border-radius:12px;

    position:fixed;

    top:20px;
    right:20px;

    z-index:99999;

    font-size:14px;
    font-weight:500;

    box-shadow:0 8px 25px rgba(0,0,0,0.15);

    opacity:0;

    transform:translateX(100%);

    transition:all .3s ease;
}

#snackbar.show{
    visibility:visible;

    opacity:1;

    transform:translateX(0);
}

#snackbar.success{
    background:#198754;
}

#snackbar.error{
    background:#dc3545;
}

#snackbar.warning{
    background:#fd7e14;
}

@media(max-width:576px){

    #snackbar{

        top:15px;
        right:15px;
        left:15px;

        min-width:auto;
        max-width:none;
    }
}

.field-error{
    display:block;
    color:#dc3545;
    font-size:12px;
    margin-top:4px;
    min-height:18px;
}

.input-error{
    border:1px solid #dc3545 !important;
}

.form-check-label{
    font-size:14px;
    color:#666;
    cursor:pointer;
}

.form-check-input{
    cursor:pointer;
}

.required-label::after{
    content:" *";
    color:#dc3545;
    font-weight:700;
}

/* Logout Modal */

.logout-dialog{
    max-width: 420px;
}

.logout-content{
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: #FEF7EF;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.logout-close{
    position: absolute;
    top: 18px;
    right: 18px;
}

.logout-content .modal-body{
    padding: 40px 30px;
}

.logout-icon{
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(216,164,90,0.12);

    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-icon i{
    font-size: 42px;
    color: #D8A45A;
}

.logout-title{
    color: #BF1028;
    font-weight: 700;
    margin-bottom: 12px;
}

.logout-text{
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.logout-actions{
    display: flex;
    gap: 12px;
}

.cancel-btn{
    flex: 1;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #BF1028;
    background: transparent;
    color: #BF1028;
    font-weight: 600;
}

.confirm-logout-btn{
    flex: 1;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: #BF1028;
    color: #fff;
    font-weight: 600;
}

.confirm-logout-btn:hover{
    background: #a00f22;
}

.cancel-btn:hover{
    background: rgba(191,16,40,0.08);
}

/* ================= PAGE LOADER ================= */

.page-loader{
    position:fixed;
    inset:0;
    background:#FEF7EF;
    z-index:99999;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:0.5s ease;
}

.page-loader.hide{
    opacity:0;
    visibility:hidden;
}

.loader-content{
    text-align:center;
}

.loader-logo{
    width:120px;
    margin-bottom:20px;
}

.loader-ring{
    width:70px;
    height:70px;

    border:4px solid #f3d6b0;
    border-top:4px solid #bf1028;

    border-radius:50%;

    margin:0 auto 20px;

    animation:spin 1s linear infinite;
}

.loader-content h4{
    color:#bf1028;
    font-weight:700;
    margin-bottom:8px;
}

.loader-content p{
    color:#777;
    font-size:15px;
}

@keyframes spin{

    100%{
        transform:rotate(360deg);
    }

}


.page-loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#FEF7EF;
    z-index:99999;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:0.5s ease;
}

.page-loader.hide{
    opacity:0;
    visibility:hidden;
}

.loader-content{
    text-align:center;
}

.loader-logo{
    width:120px;
    margin-bottom:20px;
}

.loader-ring{
    width:70px;
    height:70px;

    border:4px solid #f4dcc0;
    border-top:4px solid #bf1028;

    border-radius:50%;

    margin:0 auto 20px;

    animation:spin 1s linear infinite;
}

.loader-content h4{
    color:#bf1028;
    font-weight:700;
}

.loader-content p{
    color:#777;
}

@keyframes spin{

    100%{
        transform:rotate(360deg);
    }

}


/* ==========================================
   STATUS MODALS (SUCCESS / ERROR)
========================================== */

.status-modal-dialog{
    max-width: 500px;
}

.status-modal-content{
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: #FEF7EF;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.status-modal-content .modal-body{
    padding: 40px 30px;
}

/* ==========================================
   ICON
========================================== */

.status-icon{
    width: 90px;
    height: 90px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon i{
    font-size: 48px;
}

/* ==========================================
   TITLE
========================================== */

.status-title{
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ==========================================
   MESSAGE
========================================== */

.status-message{
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ==========================================
   BUTTON
========================================== */

.status-btn{
    min-width: 180px;
    height: 50px;

    border: none;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 600;

    transition: 0.3s;
}

/* ==========================================
   SUCCESS
========================================== */

.success-icon{
    background: rgba(34,197,94,0.12);
}

.success-icon i{
    color: #22C55E;
}

.success-title{
    color: #22C55E;
}

.success-btn{
    background: linear-gradient(
        135deg,
        #22C55E,
        #16A34A
    );

    color: #fff;

    box-shadow:
        0 10px 25px rgba(34,197,94,0.25);
}

.success-btn:hover{
    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(34,197,94,0.35);
}

/* ==========================================
   ERROR
========================================== */

.error-icon{
    background: rgba(239,68,68,0.12);
}

.error-icon i{
    color: #EF4444;
}

.error-title{
    color: #EF4444;
}

.error-btn{
    background: linear-gradient(
        135deg,
        #EF4444,
        #DC2626
    );

    color: #fff;

    box-shadow:
        0 10px 25px rgba(239,68,68,0.25);
}

.error-btn:hover{
    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(239,68,68,0.35);
}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:576px){

    .status-modal-content .modal-body{
        padding: 30px 20px;
    }

    .status-icon{
        width: 75px;
        height: 75px;
    }

    .status-icon i{
        font-size: 40px;
    }

    .status-title{
        font-size: 26px;
    }

    .status-btn{
        width: 100%;
    }
}