:root {
    --brown: linear-gradient(135deg, #3B3030, #664343, #795757, #63514F);

}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden !important;
}

.login-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.left-section {
    width: 52%;
    height: 100%;
    min-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    border-radius: 0% 0% 0% 0%;
    background-image: url('../images/CONEXUS-LEFT-SECT.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}


.left-section .logo {
    background-image: url('../images/RCIC.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 230px;
    min-width: 230px;
    height: 230px;
    border-radius: 50%;
    position: absolute;
    left: 70%;
    bottom: 13%;
    transform: translateX(-50%);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    animation: zoom-in-glow 0.7s ease-out forwards;
}

@keyframes zoom-in-glow {
    0% {
        transform: translateX(-50%) scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 255, 255, 1);
    }
}

@keyframes left-pan {
    0% {
        transform: translateX(40%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes right-pan {
    0% {
        transform: translateX(-10%);
    }

    100% {
        transform: translateX(0);
    }
}

.help-text {
    cursor: pointer;
    text-decoration: underline;
    font-style: italic;
    font-size: 13px;
    margin-top: -1.5rem;
    text-align: right;
    display: block;
}

.help-text:hover {
    color: #0052a3;
}

.contact-info {
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #0066cc;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden !important;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: 95%;
    max-width: 500px;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #ffffff;
    border-radius: 8px;
    outline: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    background-color: #ffffff;
    border-bottom: none;
}

.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    opacity: .5;
    cursor: pointer;
}

.modal-header .close:hover {
    opacity: .75;
}

.modal-title {
    margin: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    background-color: #ffffff;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
    opacity: 0.5;
}

.modal.fade.show {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show .modal-content {
    background-color: #ffffff;
}

.circle-image {
    width: 430px;
    height: 430px;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@keyframes shine {
    0% {
        background-position: -200%;
    }

    100% {
        background-position: 200%;
    }
}

.brand-name {
    position: fixed;
    bottom: 70px;
    left: 100px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #534f4f;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #cbcbcb, #7f7d7d, #cbcbcb);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounce 4s infinite, shine 10s linear infinite;
    z-index: 999;
}

.mobile-logo {
    background-image: url('../images/RCIC.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #3B3030;
    overflow: hidden;
    margin: 25px auto 0 auto;
    display: block;
    animation: bounce 4s infinite;
}




.brand-des {
    width: 1000px;
    position: sticky;
    top: 50px;
    left: 980px;
    font-size: 1.3rem;
    font-family: Poppins;
    font-style: italic;
    color: #634832;

    animation: left-pan 0.6s ease-out forwards;
}

.right-section {
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 50px;
    background-color: #fff;
    margin-bottom: 0px;
    margin-left: 47%;
    min-height: 100vh;
}

.right-section h1 {
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    animation: left-pan 0.5s ease-out forwards;
}

.right-section h4 {
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
    color: #333;
    font-size: 2rem;
    margin-right: 7px;
    font-weight: bold;
    animation: left-pan 0.5s ease-out forwards;
}

.right-section h6 {
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
    color: #333;
    font-size: 1rem;
    margin-right: 30px;
    margin-left: 29px;
    animation: left-pan 0.5s ease-out forwards;
}

form {
    width: 350px;
    max-width: 500px;
    margin: 0 auto;
}

.form-control {
    height: 50px;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 0 15px;
    font-size: 1rem;
    animation: left-pan 0.5s ease-out forwards;
}

.form-control:focus {
    border-color: #0033cc;
    box-shadow: 0px 0px 5px rgba(0, 51, 204, 0.5);
}

.form-check-label {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    animation: left-pan 0.5s ease-out forwards;
}

.form-check {
    display: flex;
    align-items: center;
    animation: left-pan 0.5s ease-out forwards;
}

.form-check-input {
    margin-top: 0;
}

.forgot-password-link {
    margin-left: auto;
    font-size: 0.9rem;
    margin-top: 2px;
    animation: left-pan 0.6s ease-out forwards;
    text-decoration: none !important;
    color: inherit;
}


.forgot-password-link:hover {
    text-decoration: none;
}


.login-button {
    width: 150px;
    max-width: 350px;
    height: 48px;
    background-color: #6f4f37;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 3px;
    transition: background 0.3s;
    animation: left-pan 0.5s ease-out forwards;
}

.login-button:hover {
    background-color: #945e2e;
}

.login-button-2 {
    width: 100%;
    max-width: 350px;
    height: 48px;
    background-color: #fff;
    color: #6f4f37;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 3px;
    animation: left-pan 0.5s ease-out forwards;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.login-button-2:hover {
    background-color: #f5f5f5;
    border-color: #6f4f37;
    color: #6f4f37;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

.password-toggle:hover {
    color: #333;
}

.long-button {
    width: 100%;
    font-family: monospace;
    white-space: normal;
    /* allow text wrap if needed */
}

/* Add responsive styles */
@media screen and (max-width: 1024px) {
    .left-section {
        min-width: 300px;
    }

    .brand-name {
        left: 50px;
        font-size: 1.3rem;
    }

    .brand-des {
        width: 800px;
        font-size: 1.1rem;
    }

    .right-section h6 {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.4;
        margin-bottom: 1rem;
        padding: 0 5px;
    }

}

@media screen and (max-width: 1200px) {
    body {
        background-color: brown;
    }

    html,
    body {
        overflow-y: auto;
    }

    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left-section {
        display: none;
    }

    .left-section .logo {
        display: none;
    }

    .brand-name {
        position: static;
        text-align: center;
        margin-top: 20px;
        font-size: 1.2rem;
    }

    .brand-des {
        width: 90%;
        position: static;
        text-align: center;
        margin: 10px auto;
        font-size: 1rem;
    }

    .right-section {
        margin-top: 5rem;
        margin-left: 0;
        width: 100%;
        min-height: auto;
        padding: 40px 20px;
        order: 2;
        background-color: white;
    }

    .right-section h6 {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.4;
        margin-bottom: 1rem;
        padding: 0 5px;
    }

}

@media screen and (max-width: 480px) {
    .left-section {
        display: none;
    }

    .left-section .logo {
        display: none;
    }

    .mobile-logo {
        display: block;
        margin: 35px auto 0px auto;
    }

    .brand-name {
        display: block;
        text-align: center;
        margin-top: 20px;
        font-size: 1.3rem;
        font-weight: bold;
        background: linear-gradient(90deg, #cbcbcb, #7f7d7d, #cbcbcb);
        background-size: 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 10s linear infinite;
    }

    .brand-des {
        font-size: 0.9rem;
    }

    .right-section {
        padding: 30px 15px;
    }

    .right-section h1 {
        font-size: 1.7rem;
    }

    .right-section h4 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1rem;
    }


    .right-section h6 {
        font-size: 0.9rem;
    }

    .form-control {
        height: 45px;
        font-size: 0.9rem;
    }

    .login-button {
        height: 45px;
        font-size: 1.1rem;
    }

    .login-button-2 {
        height: 45px;
        font-size: 0.9rem;
    }

    .right-section h6 {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.4;
        margin-bottom: 1rem;
        padding: 0 5px;
    }

}

@media screen and (max-width: 1200px) {

    body {
        background: linear-gradient(135deg, #3B3030, #664343, #795757, #63514F) !important;
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }

    .login-container {
        background: transparent !important;
    }

    .right-section {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 30px auto;
        padding: 25px 20px;
        max-width: 360px;
        min-height: auto;
    }

    .right-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    form {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        margin: 0 auto;
    }

    .form-control {
        width: 100%;
        font-size: 1rem;
        height: 46px;
    }

    .login-button {
        width: 100%;
        font-size: 1.1rem;
        height: 45px;
    }

    .right-section h4 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1rem;
    }


    .form-check {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        margin-bottom: 0;
    }

    .forgot-password-link {
        text-align: center;
        display: block;
        margin-top: 2px;
    }

    .brand-des {
        text-align: center;
        margin-top: 30px;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .mobile-logo {
        display: block;
    }

    .left-section .logo {
        display: none !important;
    }

    .right-section h6 {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.4;
        margin-bottom: 1rem;
        padding: 0 5px;
    }

}

@media screen and (max-width: 380px) {
    .right-section {
        padding: 1.5rem 1rem;
        margin: 2rem;
        width: calc(100% - 4rem);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    form {
        padding: 0 0.5rem;
    }

    .form-control,
    .login-button,
    .login-button-2 {
        width: 100%;
        font-size: 0.95rem;
    }

    .right-section h1 {
        font-size: 1.5rem;
    }

    .right-section h4 {
        font-size: 1.2rem;
        text-align: center;
    }

    .right-section h6 {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
}