label {
    color: #999;
    font-weight: normal;
    font-size: 0.8rem;
    letter-spacing: 0.25px;
    top: 4px !important;
}

.form-floating>.form-control:focus~label {
    top: 2px !important;
}

/* Fix body margins and padding */
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

#email {
    padding-left: 16px;
}

#header {
    background-color: #123f70;
    box-shadow: 0 2px 5px 2px rgba(0, 0, 0, .3);
    width: 100vw;
    height: 168px;
    background-image: url('https://assets.cdn.filesafe.space/D1qpD6ipWq6fgXMquTgq/media/679910942ee4857ef0c0a7e0.svg');
    background-position: center 10px;
    background-size: 800px;
    background-repeat: no-repeat;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #header {
        background-image: url('https://storage.googleapis.com/msgsndr/D1qpD6ipWq6fgXMquTgq/media/679c16c7be5edc867f31bc0f.png');
        background-size: contain;
        height: 120px;
        background-position: center center;
    }
    
    #dashboard {
        min-height: calc(100vh - 180px);
        padding: 1rem 0.5rem;
    }
    
    .card {
        margin: 0 0.5rem;
    }
    
    .card-header h3 {
        font-size: 1.5rem;
    }
    
    .card-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #header {
        height: 100px;
    }
    
    #dashboard {
        min-height: calc(100vh - 160px);
        padding: 0.5rem 0.25rem;
    }
    
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.form-switch .form-check-input:checked {
    border-color: #d2d6da;
    background-color: #009ede;
}

#dashboard {
    min-height: calc(100vh - 225px);
}

#footer p {
    font-size: 11px;
    text-align: center;
    margin: 0;
}

/* Mobile footer improvements */
@media (max-width: 768px) {
    #footer {
        padding: 1rem 0.5rem;
    }
    
    #footer p {
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    #footer {
        padding: 0.75rem 0.25rem;
    }
    
    #footer p {
        font-size: 9px;
        line-height: 1.3;
    }
}

#loginForm button[type=submit] {
    background-color: #009ede;
    color: #FFF;
}
#loginForm button[type=submit]:hover {
    background-color: #123f70;
}

#ajaxStatus {
    display: none;
    margin-left: 25px;
    margin-top: 10px;
}

#btn-email-continue,
#btn-email-login {
    height: 98%;
    width: 100%;
    font-size: 14px;
}

/* Mobile form improvements */
@media (max-width: 768px) {
    #btn-email-continue,
    #btn-email-login {
        height: 58px;
        font-size: 16px;
        padding: 12px 24px;
        width: 100% !important;
    }
    
    .form-floating {
        margin-bottom: 1rem;
    }
    
    .form-control {
        font-size: 16px;
        padding: 1rem 0.75rem;
    }
    
    .form-floating > label {
        font-size: 0.9rem;
        padding: 1rem 0.75rem;
    }
    
    /* Force button column to full width on mobile */
    .col-xxl-3.col-lg-4.col-md-12 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Force email field column to full width on mobile */
    .col-md-12.col-lg-8.col-xxl-9 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    #btn-email-continue,
    #btn-email-login {
        height: 50px;
        font-size: 14px;
        padding: 10px 20px;
        width: 100% !important;
    }
    
    .form-control {
        font-size: 16px;
        padding: 0.875rem 0.75rem;
    }
}

.btn-outline-cg {
    border: 1px solid #123f70;
    color: #123f70;
    height: 58px;
    width: 67%;
    background-color: #FFF;
    font-size: 14px;
    position: relative;
}

.btn-outline-cg:hover {
    border: 1px solid #009ede;
    color: #009ede;
    background-color: #FDFDFD;
}

.btn-outline-cg img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    height: 20px;
    width: auto !important;
}

/* Mobile social login button improvements */
@media (max-width: 768px) {
    .btn-outline-cg {
        width: 100%;
        height: 60px;
        font-size: 16px;
        margin-bottom: 1rem !important;
    }
    
    .btn-outline-cg img {
        left: 24px;
        height: 22px;
    }
}

@media (max-width: 576px) {
    .btn-outline-cg {
        height: 55px;
        font-size: 15px;
        margin-bottom: 0.75rem !important;
    }
    
    .btn-outline-cg img {
        left: 20px;
        height: 20px;
    }
}

/* Fix inconsistent spacing for all alternate login buttons */
.btn-outline-cg {
    margin-bottom: 1rem !important;
}

@media (max-width: 768px) {
    .btn-outline-cg {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .btn-outline-cg {
        margin-bottom: 0.75rem !important;
    }
}


.login-separator {
    font-size: 14px;
    line-height: 1.4;
    margin: 20px 0 !important;
    text-align: center;
    display: flex;
    align-items: center;
    color: #82817D;
    padding: 0;
}

/* Mobile separator improvements */
@media (max-width: 768px) {
    .login-separator {
        font-size: 13px;
        margin: 15px 0 !important;
    }
}

@media (max-width: 576px) {
    .login-separator {
        font-size: 12px;
        margin: 12px 0 !important;
    }
}

.login-separator::before,
.login-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #82817D;
}

.login-separator::before {
    margin-right: 10px;
}

.login-separator::after {
    margin-left: 10px;
}

#alternates {
    text-align: center;
}

.btn-cg {
    background-color: #123f70;
    color: #FFF;
    border: 1px solid #123f70;
    width: 66%;
}

#btn-otp-cancel {
    width: 66%;
}

/* Mobile button improvements */
@media (max-width: 768px) {
    .btn-cg,
    #btn-otp-cancel {
        width: 100%;
        height: 60px;
        font-size: 16px;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    .btn-cg,
    #btn-otp-cancel {
        height: 55px;
        font-size: 15px;
        margin-bottom: 0.5rem;
    }
}

.alert {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 90%;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

.alert.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

.alert .close-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
}


.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.otp-input {
    width: 60px;
    height: 75px;
    font-size: 28px;
    text-align: center;
    border: 1px solid #d2d6da;
    border-radius: 5px;
    outline: none;
}
.otp-input:focus {
    border-color: #123f70;
}

/* Mobile OTP improvements */
@media (max-width: 768px) {
    #otp-wrap {
        width: 100% !important;
        padding: 0 1rem;
    }
    
    .otp-container {
        gap: 8px;
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    .otp-input {
        width: 50px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    #otp-wrap {
        width: 100% !important;
        padding: 0 0.5rem;
    }
    
    .otp-container {
        gap: 6px;
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #otp-wrap {
        width: 100% !important;
        padding: 0 0.25rem;
    }
    
    .otp-container {
        gap: 4px;
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 18px;
    }
}


.has-error {
    color: #dc3545;
    border-color: #dc3545;
}


.has-error ~ label {
    color: #dc3545 !important;
}

  



/*******************************************
                PACMAN LOADER
*******************************************/


@keyframes cg_pacman_beans_1 {
    0% {
        transform: rotate(0deg)
    }

    50% {
        transform: rotate(-45deg)
    }

    100% {
        transform: rotate(0deg)
    }
}

@keyframes cg_pacman_beans_2 {
    0% {
        transform: rotate(180deg)
    }

    50% {
        transform: rotate(225deg)
    }

    100% {
        transform: rotate(180deg)
    }
}

.cg_pacman_beans>div:nth-child(2) {
    transform: translate(-15px, 0);
}

.cg_pacman_beans>div:nth-child(2) div {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 120px;
    height: 60px;
    border-radius: 120px 120px 0 0;
    background: #009ede;
    animation: cg_pacman_beans_1 1.0101010101010102s linear infinite;
    transform-origin: 60px 60px
}

.cg_pacman_beans>div:nth-child(2) div:nth-child(2) {
    animation: cg_pacman_beans_2 1.0101010101010102s linear infinite
}

.cg_pacman_beans>div:nth-child(2) div:nth-child(3) {
    transform: rotate(-90deg);
    animation: none;
}

@keyframes cg_pacman_beans_3 {
    0% {
        transform: translate(190px, 0);
        opacity: 0
    }

    20% {
        opacity: 1
    }

    100% {
        transform: translate(70px, 0);
        opacity: 1
    }
}

.cg_pacman_beans>div:nth-child(1) {
    display: block;
}

.cg_pacman_beans>div:nth-child(1) div {
    position: absolute;
    top: 92px;
    left: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d3b55d;
    animation: cg_pacman_beans_3 1.0101010101010102s linear infinite
}

.cg_pacman_beans>div:nth-child(1) div:nth-child(1) {
    animation-delay: -0.6633s
}

.cg_pacman_beans>div:nth-child(1) div:nth-child(2) {
    animation-delay: -0.3267s
}

.cg_pacman_beans>div:nth-child(1) div:nth-child(3) {
    animation-delay: 0s
}

.cg_pacman {
    width: 200px;
    height: 200px;
    display: inline-block;
    overflow: hidden;
    background: none;
    position: relative;
}

.cg_pacman_beans {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
    /* see note above */
}

.cg_pacman_beans div {
    box-sizing: content-box;
}