﻿

body.login_bg {
    min-height: 100vh;
    background-image: url('/img/Loginbg.png');
    background-size: cover;
    /* background-position: center;
                background-repeat: no-repeat; */
    font-family: 'Nunito', sans-serif;
    /* padding: 20px; */
}

.login-card {
    display: flex;
    justify-content: center;
    width: 100%;
    /* max-width: 1100px; */
    height:100vh;
    border-radius: 24px;
    overflow: hidden;
    border: none;
    background: transparent;
}

.row.g-0.justify-content-around {
    align-items: center;
}



.left-side {
    background-image: url('/img/loginbgimg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 645px;
    width: 100%;
    max-width: 780px;
    padding: 50px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}
    .left-side::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.15);
        z-index: 0;
    }

    .left-side > * {
        position: relative;
        z-index: 1;
    }
.left-side-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

    .left-side-image img {
        width: 85%;
        max-width: 380px;
        height: auto;
        display: block;
        object-fit: contain;
    }
.left-side-content {
    width: 100%;
   
    text-align: center;
    color: #fff;
}

.left-side-content {
    text-align: center;
   
    margin: 0 auto;
}

.modern-heading {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    /* Gradient highlight on the key word */
    .modern-heading .gradient-text {
        background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }

.modern-subtext {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 510px;
    /* text-align: center; */
    margin: 0 auto;
}
        }

.right-side {
    min-height: 620px;
    display: flex;
    width: 500px;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

    .right-side::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        opacity: .2;
        background: url('/img/pattern.png');
        background-size: cover;
    }
/* Fade and Slide Entry Keyframes */
@keyframes contentSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered entry for left side text & graphics */
.left-side-image,
.modern-heading,
.modern-subtext {
    opacity: 0;
    animation: contentSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.left-side-image {
    animation-delay: 0.1s;
}

.modern-heading {
    animation-delay: 0.25s;
}

.modern-subtext {
    animation-delay: 0.4s;
}

/* Staggered entry for right side login content */
.login_logo,
.login-heading,
.modern-field,
.remember-section,
.modern-login-btn {
    opacity: 0;
    animation: contentSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login_logo {
    animation-delay: 0.15s;
}

.login-heading {
    animation-delay: 0.25s;
}

.modern-field:nth-of-type(1) {
    animation-delay: 0.35s;
}

.modern-field:nth-of-type(2) {
    animation-delay: 0.45s;
}

.remember-section {
    animation-delay: 0.55s;
}

.modern-login-btn {
    animation-delay: 0.65s;
}
.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login_logo {
    width: 218px;
    margin-bottom: 0px;
    margin-top: 18px;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 30px;
}

.form-control-user {
    height: 55px;
    border-radius: 12px !important;
    border: 1px solid #d8d8d8;
    font-size: 15px;
    padding-left: 18px;
}

    .form-control-user:focus {
        border-color: #006F8C;
        box-shadow: 0 0 0 .15rem rgba(0,111,140,.15);
    }

.btn-login {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    background: #006F8C;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    transition: .3s;
}

    .btn-login:hover {
        background: #00566e;
        transform: translateY(-1px);
    }

.field-icon {
    position: absolute;
    top: 12px;
    right: 15px;
    cursor: pointer;
    color: #888;
}

.password-wrapper {
    position: relative;
}

.remember-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 25px;
    font-size: 14px;
}

    .remember-section a {
        color: #e74c3c;
        text-decoration: none;
        font-weight: 600;
    }

.app-download img {
    width: 180px;
}

.mobile-title {
    color: #666;
    margin-top: 25px;
    margin-bottom: 10px;
}

.alert {
    border-radius: 12px;
}

.login-animation {
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
}
.login-illustration {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}
.modern-login-btn {
    width: 100%;
    height: 55px;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 0 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #006F8C, #00566e);
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 111, 140, 0.25);
    transition: all 0.3s ease;
}

    /* Hover */
    .modern-login-btn:hover {
        background: linear-gradient(135deg, #00566e, #00495d);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 9px 22px rgba(0, 111, 140, 0.35);
    }

    /* Click */
    .modern-login-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0, 111, 140, 0.25);
    }

    /* Focus */
    .modern-login-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 111, 140, 0.15), 0 6px 16px rgba(0, 111, 140, 0.25);
    }

.forgot-link {
    color: #006F8C;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

    .forgot-link:hover {
        color: #00566e;
        text-decoration: none;
    }


/* Entrance and Floating Animations */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-15px);
        filter: drop-shadow(0 0 0px rgba(0, 111, 140, 0));
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 8px 16px rgba(0, 111, 140, 0.15));
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Modern Logo Styles */
.login_logo {
    display: inline-block;
    height: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth entrance on load */
    animation: logoEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, logoFloat 4s ease-in-out infinite 0.8s; /* Floating starts after entrance */
}

    /* Interactive Hover Effect */
    .login_logo:hover {
        transform: scale(1.05) translateY(-2px);
        filter: drop-shadow(0 12px 24px rgba(0, 111, 140, 0.3));
    }

    .login_logo:active {
        transform: scale(0.98);
    }

@media (max-width: 768px) {
    .login-animation {
        max-width: 350px;
        height: 280px;
    }
}

@media (max-width: 991px) {

    .left-side {
        display: none;
    }

    .right-side {
        min-height: auto;
        padding: 30px;
    }

    .login_logo {
        width: 180px;
    }

    .login-title {
        font-size: 1.7rem;
    }
    .login-illustration {
        max-width: 420px;
    }
}

@media (max-width: 576px) {

    body.login_bg {
        padding: 10px;
    }

    .right-side {
        padding: 20px;
    }

    .login_logo {
        width: 150px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .form-control-user {
        height: 50px;
    }

    .btn-login {
        height: 48px;
    }

    .remember-section {
        flex-direction: column;
        gap: 10px;
        align-items: start;
    }

    .modern-login-btn {
        height: 50px;
        font-size: 15px;
        border-radius: 10px;
    }
    .login-illustration {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
}


@media (max-width: 360px) {

    .right-side {
        padding: 25px 12px;
    }

    .login-options {
        gap: 8px;
    }

    .login-heading h1 {
        font-size: 21px;
    }

    .login_logo {
        width: 150px;
    }

    .forgot-link {
        font-size: 11px;
    }
    .login-illustration {
        max-width: 280px;
    }
}

/* Modern Fieldset-style Input */

.modern-field {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

    /* Input */

    .modern-field .modern-input {
        width: 100%;
        height: 58px;
        padding: 2px 25px;
        border: 1.5px solid #006F8C;
        border-radius: 60px;
        background: #fff;
        color: #263238;
        font-size: 16px;
        outline: none;
        transition: all 0.25s ease;
        box-sizing: border-box;
    }

    /* Label */

    .modern-field label {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        padding: 3px 11px;
        background: #fff;
        border-radius: 10px;
        color: #7b8794;
        font-size: 14px;
        pointer-events: none;
        transition: all 0.2s ease;
    }

    /* Focus */

    .modern-field .modern-input:focus {
        border-color: #006F8C;
        box-shadow: 0 0 0 3px rgba(0, 111, 140, 0.08);
    }

        /* Move label to border */

        .modern-field .modern-input:focus + label,
        .modern-field .modern-input:not(:placeholder-shown) + label {
            top: 0;
            transform: translateY(-50%);
            font-size: 15px;
            font-weight: 600;
            color: #006F8C;
        }

/* Password */

.password-field .modern-input {
    padding-right: 48px;
}

/* Eye icon */

.modern-field .field-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b96a3;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s ease;
}

    .modern-field .field-icon:hover {
        color: #006F8C;
    }

/* Mobile */

@media (max-width: 576px) {

    .modern-field .modern-input {
        height: 50px;
        font-size: 14px;
    }

    .modern-field label {
        font-size: 13px;
    }

    .modern-field .modern-input:focus + label,
    .modern-field .modern-input:not(:placeholder-shown) + label {
        font-size: 11px;
    }
}

.login-heading {
    text-align: center;
    margin-bottom: 28px;
}

    .login-heading h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        color: #006F8C;
        letter-spacing: -0.3px;
    }

    .login-heading p {
        margin: 7px 0 0;
        font-size: 15px;
        color: #7b8794;
    }

@media (max-width: 576px) {
    .login-heading h1 {
        font-size: 24px;
    }

    .login-heading p {
        font-size: 13px;
    }
}



/* Glassmorphism Form Overlay */
.login-main-container {
    position: relative;
}

.login-loading-overlay {
    position: absolute;
    inset: -10px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Activate Overlay */
.login-container.is-submitting .login-loading-overlay {
    opacity: 1;
    visibility: visible;
}

/* Modern Pulse Waves Animation */
.loading-pulse-ring {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

    .loading-pulse-ring::before,
    .loading-pulse-ring::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #006F8C;
        opacity: 0.6;
        animation: pulseWave 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

    .loading-pulse-ring::after {
        animation-delay: -0.8s;
    }

.loading-pulse-icon {
    position: absolute;
    inset: 12px;
    background: #006F8C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 111, 140, 0.4);
}

.loading-text-glow {
    font-size: 14px;
    font-weight: 700;
    color: #006F8C;
    letter-spacing: 0.5px;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

/* Button Shimmer / Progress Effect */
.modern-login-btn {
    position: relative;
    overflow: hidden;
}

    .modern-login-btn.is-loading {
        pointer-events: none;
        color: rgba(255, 255, 255, 0.8) !important;
    }

        .modern-login-btn.is-loading::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 200%;
            height: 100%;
            background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100% );
            animation: shimmerProgress 1.2s infinite;
        }

/* Keyframe Animations */
@keyframes pulseWave {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes textGlow {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

@keyframes shimmerProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}
.otp-loading-overlay {
    position: absolute;
    inset: -15px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Activate Overlay */
.login-container.is-verifying .otp-loading-overlay {
    opacity: 1;
    visibility: visible;
}

/* Modern Shield Pulse Wave Animation */
.loading-shield-ring {
    position: relative;
    width: 65px;
    height: 65px;
    margin-bottom: 16px;
}

    .loading-shield-ring::before,
    .loading-shield-ring::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #006F8C;
        opacity: 0.6;
        animation: shieldPulse 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

    .loading-shield-ring::after {
        animation-delay: -0.8s;
    }

.loading-shield-icon {
    position: absolute;
    inset: 10px;
    background: #006F8C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0, 111, 140, 0.35);
}

.loading-text-glow {
    font-size: 15px;
    font-weight: 700;
    color: #006F8C;
    letter-spacing: 0.5px;
    animation: textFade 1.4s ease-in-out infinite alternate;
}

/* Button Loading Shimmer */
.modern-login-btn {
    position: relative;
    overflow: hidden;
}

    .modern-login-btn.is-loading {
        pointer-events: none;
        color: rgba(255, 255, 255, 0.8) !important;
    }

        .modern-login-btn.is-loading::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 200%;
            height: 100%;
            background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100% );
            animation: buttonShimmer 1.2s infinite;
        }

/* Keyframes */
@keyframes shieldPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes textFade {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

@keyframes buttonShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Resend Specific Pulse Ring (Teal / Sync Theme) */
.loading-sync-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

    .loading-sync-ring::before,
    .loading-sync-ring::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #008CBA;
        opacity: 0.6;
        animation: syncPulse 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

    .loading-sync-ring::after {
        animation-delay: -0.8s;
    }

.loading-sync-icon {
    position: absolute;
    inset: 12px;
    background: #008CBA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 140, 186, 0.4);
}

    .loading-sync-icon i {
        animation: spinSync 1.2s linear infinite;
    }

/* Animations */
@keyframes syncPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes spinSync {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}