/* =========================================
   Customer Loans Portal
   ========================================= */

#customer-loans-portal {
    direction: rtl;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px 30px 30px 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    box-sizing: border-box;
}

#customer-loans-portal *,
#customer-loans-portal *::before,
#customer-loans-portal *::after {
    box-sizing: border-box;
}


/* Headings */

#customer-loans-portal h3 {
    margin: 0 0 25px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2937;
}


/* Paragraphs */

#customer-loans-portal p {
    margin: 0 0 18px;
}


/* Labels */

#customer-loans-portal label {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}


/* Inputs */

#customer-loans-portal input[type="text"],
#customer-loans-portal input[type="tel"],
#customer-loans-portal input[type="email"] {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 16px;
    text-align: right;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#customer-loans-portal input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#customer-loans-portal input::placeholder {
    color: #9ca3af;
}


/* OTP input */

#customer-loans-portal #customer_otp {
    direction: ltr;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 6px;
}


/* Buttons */

#customer-loans-portal button {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}

#customer-loans-portal button:hover {
    background: #1d4ed8;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}

#customer-loans-portal button:active {
    transform: translateY(1px);
}

#customer-loans-portal button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}


/* Messages */

#customer-login-message,
#customer-otp-message {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}


/* API response - temporary */

#customer-loans-response {
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    max-width: 100%;
    padding: 15px;
    margin: 0;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}


/* Mobile */

@media (max-width: 600px) {

    #customer-loans-portal {
        margin: 20px 15px;
        padding: 22px 18px;
        border-radius: 12px;
    }

    #customer-loans-portal h3 {
        font-size: 23px;
        margin-bottom: 20px;
    }

    #customer-loans-portal input[type="text"],
    #customer-loans-portal input[type="tel"],
    #customer-loans-portal input[type="email"] {
        height: 48px;
    }

}


/* Loading state */

#customer-loans-portal.is-loading {
    opacity: 0.7;
    pointer-events: none;
}


/* Optional: hide empty messages */

#customer-login-message:empty,
#customer-otp-message:empty {
    display: none;
}