.login-container {
    max-width: 496px;
    margin: auto;
}

/* Form Inputs Styling */
.login-container .form-control,
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
    background-color: #f5f8fa;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    color: #1e344c;
    height: 48px;
}

.login-container .form-control:focus,
.login-container input[type="text"]:focus,
.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
    background-color: #f5f8fa;
    border: none;
    box-shadow: none;
    outline: none;
}

.login-container .form-control::placeholder,
.login-container input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Buttons Styling */
.login-container .btn,
.login-container button[type="submit"],
.login-container a.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-container .btn-dark,
.login-container button[type="submit"] {
    background-color: #1e344c;
    border: none;
    color: #ffffff;
    box-shadow: 0px 3px 10px rgba(255, 203, 133, 0.1);
    border-radius: 6px;
}

.login-container .btn-dark:hover,
.login-container button[type="submit"]:hover {
    background-color: #162739;
    color: #ffffff;
}

.custom-register-btn {
    background-color: #d4a574;
    color: #fff;
    border: 1px solid #d4a574;
}

/* Password fields: LTR + eye toggle */
.login-container .password-input-group {
    background-color: #f5f8fa;
    border-radius: 6px;
    overflow: hidden;
    flex-wrap: nowrap;
}

.login-container .password-input-group .form-control {
    border-radius: 0;
    padding-inline-end: 8px;
    direction: ltr;
    text-align: left;
}

.login-container .password-input-group .form-control:focus {
    box-shadow: none;
}

.login-container .password-toggle-btn {
    background-color: #f5f8fa;
    border: none;
    color: #5E6278;
    box-shadow: none;
    height: 48px;
    min-width: 48px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
}

.login-container .password-toggle-btn:hover,
.login-container .password-toggle-btn:focus,
.login-container .password-toggle-btn:active {
    background-color: #f5f8fa;
    color: #1e344c;
    box-shadow: none;
}

.login-container .password-input-group.is-invalid,
.login-container .password-input-group:has(.is-invalid) {
    box-shadow: inset 0 0 0 1px #dc3545;
}

/* intl-tel-input phone field */
.login-container .phone-iti-wrap {
    width: 100%;
}

.login-container .phone-iti-wrap .iti {
    width: 100%;
    direction: ltr;
}

.login-container .phone-iti-wrap .iti input.form-control {
    width: 100%;
    padding-left: 12px;
    direction: ltr;
    text-align: left;
}

.login-container .phone-iti-wrap .iti__country-container {
    margin-inline-start: 0;
}

.login-container .phone-iti-wrap .iti__selected-country {
    background-color: transparent;
    border: none;
    padding-inline: 10px;
}

.login-container .phone-iti-wrap .iti__selected-dial-code {
    color: #1e344c;
    font-size: 14px;
}

.login-container .phone-iti-wrap.is-invalid .iti input.form-control,
.login-container .phone-iti-wrap .iti input.is-invalid {
    box-shadow: inset 0 0 0 1px #dc3545;
}

/* Divider under Gulf favorites in country list */
.login-container .iti__country-list .iti__country:nth-child(6) {
    border-bottom: 1px solid #e5e7eb;
}

/* Form Labels */
.login-container .form-label {
    font-family: "Readex Pro", sans-serif;
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;

    color: #5E6278;
    text-transform: capitalize;

    text-align: left;
    letter-spacing: 0;

    margin-bottom: 6px;
}

.login-container .form-check-label {
    font-size: 14px;
    color: #374151;
    margin-right: 8px;
}

/* Email Info Message */
.email-info-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #374151;
}

.email-info-message .info-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* Links */
.custom-register-btn {
    color: #fff;
    text-decoration: none;
}

.custom-register-btn:hover {
    color: #fff;
    background-color: #d4a574;
    text-decoration: none;
}

/* Error Messages */
.login-container .invalid-feedback {
    font-size: 13px;
    margin-top: 4px;
}

.login-container .is-invalid {
    border-color: #dc3545;
}

.login-container .is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Small Text Styling */
.login-container .text-muted,
.login-container .small {
    font-size: 13px;
    line-height: 1.5;
}

.login-container .text-muted a {
    color: #1b3047;
    text-decoration: underline;
}

.login-container .text-muted a:hover {
    color: #152536;
}

/* Verification Code Inputs */
.verification-code-input {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    width: 45px;
    height: 48px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.verification-code-input:focus {
    background-color: #ffffff !important;
    border-color: #1b3047 !important;
    box-shadow: 0 0 0 0.2rem rgba(27, 48, 71, 0.1) !important;
    outline: none;
}

/* Checkout identify gate */
.checkout-identify-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: rgba(0, 0, 0, 0.04);
}

.checkout-identify-card {
    background: #fafafa;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    margin: auto;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.14);
    padding: 28px 22px 24px;
    overflow: hidden;
}

.checkout-identify-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 16px;
    font-size: 24px;
    color: #888;
    text-decoration: none;
    line-height: 1;
}

.checkout-identify-title {
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 8px;
    color: #1e344c;
}

.checkout-identify-subtitle {
    text-align: center;
    margin-bottom: 20px;
}

.checkout-identify-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-identify-back {
    border: none;
    background: transparent;
    color: #5E6278;
    font-size: 13px;
    padding: 0;
    margin-bottom: 12px;
    cursor: pointer;
}

.checkout-identify-panel {
    animation: checkoutIdentifyIn 0.28s ease;
}

.checkout-identify-panel[hidden] {
    display: none !important;
}

@keyframes checkoutIdentifyIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="rtl"] .checkout-identify-panel {
    animation-name: checkoutIdentifyInRtl;
}

@keyframes checkoutIdentifyInRtl {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.checkout-identify-card .phone-iti-wrap .iti {
    width: 100%;
    direction: ltr;
}

.checkout-identify-card .form-control {
    background-color: #f5f8fa;
    border: none;
    border-radius: 6px;
    height: 48px;
}

.checkout-identify-card .btn-dark {
    background-color: #1e344c;
    border: none;
    height: 48px;
    border-radius: 6px;
}
