
/* =========================================================
   CARANDCAB PREMIUM LOGIN MODAL
   Current Premium Teal Design System
========================================================= */

.cc-login-modal {

    --cc-teal: #0F766E;
    --cc-teal-dark: #0B5F59;
    --cc-teal-soft: #E8F5F3;

    --cc-dark: #111827;
    --cc-text: #172033;
    --cc-muted: #6B7280;

    --cc-border: #E5E7EB;
    --cc-bg: #F8FAFC;

}


/* =========================================================
   MODAL
========================================================= */

.cc-login-modal .modal-dialog {

    max-width: 440px;

    padding: 16px;

}


.cc-login-content {

    position: relative;

    border: 0;

    border-radius: 24px;

    padding: 34px 34px 26px;

    background: #FFFFFF;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.20);

    overflow: hidden;

}


/* =========================================================
   TOP ACCENT
========================================================= */

.cc-login-content::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background: linear-gradient(
        90deg,
        var(--cc-teal-dark),
        var(--cc-teal)
    );

}


/* =========================================================
   CLOSE
========================================================= */

.cc-login-close {

    position: absolute;

    top: 18px;
    right: 18px;

    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 50%;

    background: #F3F4F6;

    color: #4B5563;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

    z-index: 5;

}


.cc-login-close:hover {

    background: var(--cc-dark);

    color: #FFFFFF;

    transform: rotate(90deg);

}


/* =========================================================
   BRAND
========================================================= */

.cc-login-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 26px;

}


.cc-login-brand-icon {

    width: 46px;
    height: 46px;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        var(--cc-teal-dark),
        var(--cc-teal)
    );

    color: #FFFFFF;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;

    box-shadow:
        0 8px 20px rgba(15, 118, 110, 0.22);

}


.cc-login-brand strong {

    display: block;

    color: var(--cc-dark);

    font-size: 18px;

    font-weight: 800;

    line-height: 1.1;

}


.cc-login-brand span {

    display: block;

    margin-top: 4px;

    color: var(--cc-muted);

    font-size: 11px;

    font-weight: 600;

}


/* =========================================================
   HEADING
========================================================= */

.cc-login-heading {

    margin-bottom: 25px;

}


.cc-login-eyebrow {

    display: inline-block;

    margin-bottom: 8px;

    color: var(--cc-teal);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

}


.cc-login-heading h2 {

    margin: 0;

    color: var(--cc-text);

    font-size: 28px;

    line-height: 1.15;

    font-weight: 800;

}


.cc-login-heading p {

    margin: 9px 0 0;

    color: var(--cc-muted);

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================================
   LABEL
========================================================= */

.cc-login-label {

    display: block;

    margin-bottom: 8px;

    color: var(--cc-text);

    font-size: 13px;

    font-weight: 700;

}


/* =========================================================
   MOBILE INPUT
========================================================= */

.cc-mobile-input {

    display: flex;

    align-items: center;

    width: 100%;

    height: 56px;

    border: 1px solid var(--cc-border);

    border-radius: 14px;

    background: #FFFFFF;

    overflow: hidden;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.cc-mobile-input:focus-within {

    border-color: var(--cc-teal);

    box-shadow:
        0 0 0 4px rgba(15, 118, 110, 0.10);

}


.cc-country-code {

    height: 100%;

    padding: 0 13px;

    display: flex;

    align-items: center;

    gap: 7px;

    background: #F8FAFC;

    border-right: 1px solid var(--cc-border);

    color: var(--cc-text);

    font-size: 14px;

    font-weight: 700;

}


.cc-country-code img {

    width: 24px;

    height: auto;

}


.cc-mobile-input input {

    flex: 1;

    height: 100%;

    min-width: 0;

    border: 0;

    outline: 0;

    padding: 0 15px;

    color: var(--cc-text);

    background: transparent;

    font-size: 16px;

    font-weight: 600;

}


.cc-mobile-input input::placeholder {

    color: #9CA3AF;

    font-weight: 400;

}


/* =========================================================
   MESSAGE
========================================================= */

.cc-login-message {

    display: none;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    padding: 10px 12px;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1.4;

}


.cc-login-error {

    color: #B42318;

    background: #FFF1F0;

}


.cc-login-success {

    color: #087443;

    background: #ECFDF3;

}


.cc-login-message i {

    flex-shrink: 0;

}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.cc-login-primary {

    position: relative;

    width: 100%;

    height: 54px;

    margin-top: 17px;

    border: 0;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        var(--cc-teal-dark),
        var(--cc-teal)
    );

    color: #FFFFFF;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: .2px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(15, 118, 110, 0.24);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.cc-login-primary:hover {

    background: linear-gradient(
        135deg,
        #094F4A,
        var(--cc-teal-dark)
    );

    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(15, 118, 110, 0.30);

}


.cc-login-primary:active {

    transform: translateY(0);

}


.cc-login-primary:disabled {

    opacity: .7;

    cursor: not-allowed;

    transform: none;

}


.cc-btn-arrow {

    position: absolute;

    right: 18px;

}


.cc-btn-loader {

    display: flex;

    align-items: center;

    gap: 7px;

}


/* =========================================================
   OTP
========================================================= */

.cc-otp-heading {

    margin-top: 18px;

}


.cc-otp-heading span {

    display: block;

    color: var(--cc-text);

    font-size: 15px;

    font-weight: 800;

}


.cc-otp-heading small {

    display: block;

    margin-top: 4px;

    color: var(--cc-muted);

    font-size: 12px;

}


.cc-otp-boxes {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-top: 17px;

}


.otp-input {

    width: 68px;

    height: 60px;

    border: 1px solid var(--cc-border);

    border-radius: 14px;

    background: #FFFFFF;

    text-align: center;

    font-size: 22px;

    font-weight: 800;

    color: var(--cc-text);

    outline: 0;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.otp-input:focus {

    border-color: var(--cc-teal);

    box-shadow:
        0 0 0 4px rgba(15, 118, 110, 0.10);

}


/* =========================================================
   CHANGE NUMBER
========================================================= */

.cc-change-number {

    width: 100%;

    margin-top: 14px;

    padding: 8px;

    border: 0;

    background: transparent;

    color: #6B7280;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

}


.cc-change-number:hover {

    color: var(--cc-teal);

}


.cc-change-number i {

    margin-right: 5px;

}


/* =========================================================
   TRUST
========================================================= */

.cc-login-trust {

    display: flex;

    justify-content: center;

    gap: 18px;

    margin-top: 25px;

    padding-top: 18px;

    border-top: 1px solid #F0F1F3;

}


.cc-login-trust > div {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #6B7280;

    font-size: 10px;

    font-weight: 700;

}


.cc-login-trust i {

    color: var(--cc-teal);

}


/* =========================================================
   TERMS
========================================================= */

.cc-login-terms {

    margin-top: 17px;

    text-align: center;

    color: #9CA3AF;

    font-size: 10px;

    line-height: 1.6;

}


.cc-login-terms a {

    color: var(--cc-teal-dark);

    font-weight: 700;

    text-decoration: underline;

}


.cc-login-terms a:hover {

    color: var(--cc-teal);

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .cc-login-modal .modal-dialog {

        margin: 10px auto;

        padding: 10px;

    }


    .cc-login-content {

        padding: 30px 22px 22px;

        border-radius: 21px;

    }


    .cc-login-heading h2 {

        font-size: 25px;

    }


    .otp-input {

        width: 58px;

        height: 56px;

    }


    .cc-login-trust {

        gap: 10px;

    }

}


@media (max-width: 360px) {

    .otp-input {

        width: 52px;

        height: 52px;

    }

}


/* =========================================================
   CARANDCAB OTP VERIFY BUTTON
========================================================= */

#ccOtpStep #submit-otp {

    width: 100%;

    min-height: 52px;

    display: flex !important;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 20px;

    border: 0;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        var(--cc-teal-dark),
        var(--cc-teal)
    );

    color: #FFFFFF;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    visibility: visible !important;

    opacity: 1 !important;

    box-shadow:
        0 10px 22px rgba(15, 118, 110, 0.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


#ccOtpStep #submit-otp:hover {

    background: linear-gradient(
        135deg,
        #094F4A,
        var(--cc-teal-dark)
    );

    transform: translateY(-1px);

    box-shadow:
        0 14px 26px rgba(15, 118, 110, 0.27);

}


#ccOtpStep #submit-otp .cc-btn-text {

    display: inline-block;

}


#ccOtpStep #submit-otp .cc-btn-arrow {

    display: inline-block;

}


#ccOtpStep #submit-otp .cc-btn-loader {

    display: none;

}


#ccOtpStep #submit-otp:disabled {

    opacity: 0.7 !important;

    cursor: not-allowed;

    transform: none;

}


/* =========================================================
   CHANGE MOBILE
========================================================= */

#ccOtpStep #change-mobile-number {

    width: 100%;

    display: flex !important;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 14px;

    border: 0;

    background: transparent;

    color: #666666;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    visibility: visible !important;

    opacity: 1 !important;

}


#ccOtpStep #change-mobile-number:hover {

    color: var(--cc-teal);

}

.cc-login-real-logo {
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden;
}

.cc-login-real-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
