/* ---- Jobonn Company Login Modal ---- */

#loginModal .modal-dialog {
    max-width: 420px;
    margin: 0.5rem auto;
}

#loginModal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f0ff 0%, #ffffff 28%);
    box-shadow: 0 25px 50px rgba(31, 27, 78, 0.25);
    padding: 0;
}

.jobonn-login-modal {
    position: relative;
}

/* decorative top gradient strip */
.jobonn-login-modal::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #4a1d8f 0%, #7a35c9 50%, #9B5DE0 100%);
}

/* ---- Brand ---- */
.jobonn-login-brand {
    text-align: center;
    padding: 28px 28px 6px;
}

.jobonn-login-brand img {
    background: #fff;
    border-radius: 12px;
    padding: 8px 18px;
    box-shadow: 0 6px 16px rgba(74, 29, 143, 0.15);
    max-height: 52px;
    width: auto;
}

/* ---- Body ---- */
.jobonn-login-body {
    padding: 14px 30px 30px;
}

.jobonn-login-title {
    font-size: 22px;
    font-weight: 700;
    color: #222b40;
    text-align: center;
    margin-bottom: 4px;
}

.jobonn-login-subtitle {
    font-size: 13.5px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.jobonn-input-group {
    margin-bottom: 16px;
}

.jobonn-input-group label,
.jobonn-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.jobonn-input {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 0 14px;
    transition: all 0.25s ease;
}

.jobonn-input:focus-within {
    border-color: #9B5DE0;
    box-shadow: 0 0 0 4px rgba(155, 93, 224, 0.12);
}

.jobonn-input i {
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
}

.jobonn-input input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 0;
    font-size: 14px;
    color: #222b40;
}

.jobonn-input input::placeholder {
    color: #9ca3af;
}

.jobonn-toggle-pass {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 4px;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
}

.jobonn-toggle-pass:hover {
    color: #9B5DE0;
}

.jobonn-login-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #7a35c9 0%, #9B5DE0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.jobonn-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(155, 93, 224, 0.35);
}

.jobonn-login-help {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 18px;
}

.jobonn-login-help a {
    color: #7a35c9;
    text-decoration: underline;
    font-weight: 600;
}

/* ---- Close button ---- */
.jobonn-login-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
}

/* ========================================
   Register modal - wider two-column layout
   ======================================== */
#registerModal .modal-dialog {
    max-width: 760px;
    margin: 0.5rem auto;
}

.jobonn-register-form {
    padding: 8px 0 4px;
}

.jobonn-form-row {
    display: flex;
    gap: 16px;
}

.jobonn-form-row + .jobonn-form-row {
    margin-top: 14px;
}

.jobonn-form-row .jobonn-field {
    flex: 1 1 50%;
    min-width: 0;
}

.jobonn-otp-btn {
    border: none;
    background: #f3e8ff;
    color: #7a35c9;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.jobonn-otp-btn:hover:not(:disabled) {
    background: #e9d5ff;
}

.jobonn-otp-btn:disabled,
.jobonn-login-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.jobonn-otp-msg {
    font-size: 12.5px;
    margin-top: 7px;
    min-height: 16px;
    line-height: 1.4;
}

.jobonn-otp-msg.success {
    color: #16a34a;
}

.jobonn-otp-msg.error {
    color: #dc2626;
}

.jobonn-field-full {
    flex: 1 1 100% !important;
}

.jobonn-field-note {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 4px 0 8px;
}

@media (max-width: 576px) {
    .jobonn-form-row {
        flex-direction: column;
        gap: 0;
    }

    .jobonn-form-row .jobonn-field {
        flex: 1 1 100% !important;
        width: 100%;
        margin-bottom: 14px;
    }
}
/* ========================================
   Registration success modal
   ======================================== */
#registrationSuccessModal .modal-dialog {
    max-width: 400px;
    margin: 0.5rem auto;
}

.jobonn-success-content {
    border: none;
    border-radius: 18px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.jobonn-success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35);
    animation: jobonnSuccessPop 0.5s ease;
}

@keyframes jobonnSuccessPop {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    60% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.jobonn-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #222b40;
    margin-bottom: 8px;
}

.jobonn-success-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.jobonn-success-btn {
    border: none;
    border-radius: 10px;
    padding: 11px 38px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jobonn-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.35);
}
