/*------------------------------------------
  Project Name : Jobs Portal
  Module       : Login Modal Component Styles
------------------------------------------*/

.custom-login-modal .modal-dialog {
    max-width: 920px !important;
    width: 92% !important;
}

.custom-login-modal .modal-content {
    border-radius: 28px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important;
}

.login-banner-side {
    background: linear-gradient(145deg, #242936 0%, #1c202a 60%, #151821 100%);
    border-right: 1px solid #2e3444;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem 2rem 2rem 2rem;
    color: #ffffff;
}

.banner-dots {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(rgba(239, 192, 60, 0.35) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.8;
    pointer-events: none;
}

.banner-circle-bg {
    position: absolute;
    top: -10%;
    left: -20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 192, 60, 0.15) 0%, rgba(239, 192, 60, 0) 70%);
    pointer-events: none;
}

.banner-hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.banner-hero-img {
    width: 100%;
    max-width: 410px;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
    margin: 0 auto 0.75rem auto;
    transform: scale(1.08);
    transform-origin: center center;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.banner-text-content {
    position: relative;
    z-index: 2;
}

.banner-headline {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
}

.banner-subtext {
    font-size: 0.88rem;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 400;
    color: #cbd5e1 !important;
}

.login-form-side {
    background-color: #ffffff !important;
    padding: 2.75rem 2.75rem;
    position: relative;
}

.modal-close-btn-custom {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn-custom:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.custom-input-field {
    width: 100% !important;
    display: block !important;
    height: 50px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
}

.custom-input-field::placeholder {
    color: #94a3b8 !important;
}

.custom-input-field:focus {
    border-color: rgb(239, 192, 60) !important;
    box-shadow: 0 0 0 3px rgba(239, 192, 60, 0.25) !important;
    background-color: #ffffff !important;
}

/* intl-tel-input in apply/login modals — do NOT force padding-left; library sets it inline */
.apply-phone-field .iti {
    width: 100% !important;
    display: block !important;
}

.apply-phone-field .iti input.iti__tel-input,
.apply-phone-field .iti input[type='tel'] {
    width: 100% !important;
    display: block !important;
    height: 50px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    padding-right: 1.1rem !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
}

.apply-phone-field .iti input.iti__tel-input::placeholder,
.apply-phone-field .iti input[type='tel']::placeholder {
    color: #94a3b8 !important;
}

.apply-phone-field .iti input.iti__tel-input:focus,
.apply-phone-field .iti input[type='tel']:focus {
    border-color: rgb(239, 192, 60) !important;
    box-shadow: 0 0 0 3px rgba(239, 192, 60, 0.25) !important;
    background-color: #ffffff !important;
    outline: none !important;
}

.apply-phone-field .iti__country-container {
    z-index: 2;
}

.apply-phone-field .iti__dropdown-content {
    z-index: 1060 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Custom apply-modal file picker */
.apply-file-upload {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 50px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-file-upload:focus-within {
    border-color: rgb(239, 192, 60);
    box-shadow: 0 0 0 3px rgba(239, 192, 60, 0.25);
}

.apply-file-upload.is-invalid {
    border-color: #ef4444;
}

.apply-file-upload.is-invalid:focus-within {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.apply-file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.apply-file-upload__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    height: 100%;
    min-height: 48px;
    padding: 0 1rem;
    margin: 0;
    background: #f8fafc;
    border: none;
    border-right: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.apply-file-upload__trigger:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.apply-file-upload__name {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #ffffff;
}

.custom-login-modal .iti {
    width: 100% !important;
    display: block !important;
}

.custom-login-modal .iti__country-list,
.custom-login-modal .iti__dropdown-content {
    z-index: 1060 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.password-toggle-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    padding: 6px 10px !important;
    z-index: 5 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.password-toggle-btn:hover {
    color: #0f172a !important;
}

.custom-submit-btn {
    width: 100% !important;
    height: 50px !important;
    border-radius: 12px !important;
    background: rgb(239, 192, 60) !important;
    border: none !important;
    color: #000000 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(239, 192, 60, 0.35) !important;
    transition: all 0.25s ease !important;
}

.custom-submit-btn:hover,
.custom-submit-btn:focus,
.custom-submit-btn:active {
    background: #dfb02c !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(239, 192, 60, 0.45) !important;
}

.custom-passkey-btn {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.custom-social-icon-btn {
    width: 68px !important;
    height: 46px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-size: 1.15rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    flex: 0 0 68px !important;
}

.custom-social-icon-btn:hover {
    background-color: #f8fafc !important;
    border-color: rgb(239, 192, 60) !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(239, 192, 60, 0.15) !important;
}

.custom-passkey-btn:hover {
    background-color: #f8fafc !important;
    border-color: rgb(239, 192, 60) !important;
    color: #0f172a !important;
}

.divider-or {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.divider-or span {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    padding: 0 14px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .login-form-side {
        padding: 2rem 1.5rem;
    }
}
