/* ============================================================
   Portal Agency — Login Form Widget
   assets/css/widget-login-form.css

   Brand: Portal Talents — light / white theme
   Primary: #0068FF  |  Font: Comfortaa
   All selectors scoped under .portal-widget--login-form
   ============================================================ */

/* ── Wrapper ──────────────────────────────────────────────────── */
.portal-widget--login-form .plf-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ── Logged-in state ──────────────────────────────────────────── */
.portal-widget--login-form .plf-logged-in {
    text-align: center;
    padding: 40px 32px;
    color: #374151;
    background: #fff;
    border-radius: 20px;
    border: 1.5px solid #e5e9f0;
}

.portal-widget--login-form .plf-logged-in strong {
    color: #0068FF;
}

.portal-widget--login-form .plf-logout-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: transparent;
    border: 1.5px solid #0068FF;
    border-radius: 10px;
    color: #0068FF;
    text-decoration: none;
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.portal-widget--login-form .plf-logout-btn:hover {
    background: #0068FF;
    color: #fff;
}

/* ── Card ─────────────────────────────────────────────────────── */
.portal-widget--login-form .plf-card {
    background: #ffffff;
    border: 1.5px solid #e5e9f0;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow:
        0 0 0 1px rgba(0, 104, 255, 0.06),
        0 16px 48px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    max-width: 480px;
}

/* Blue top accent line */
.portal-widget--login-form .plf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0068FF 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 20px 20px 0 0;
}

/* ── Header ───────────────────────────────────────────────────── */
.portal-widget--login-form .plf-header {
    text-align: center;
    margin-bottom: 28px;
}

.portal-widget--login-form .plf-title {
    color: #111827;
    font-family: 'Comfortaa', 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.portal-widget--login-form .plf-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ── Role badge (shows which login this is) ───────────────────── */
.portal-widget--login-form .plf-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 100px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Comfortaa', sans-serif;
}

/* ── Alerts ───────────────────────────────────────────────────── */
.portal-widget--login-form .plf-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.portal-widget--login-form .plf-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.portal-widget--login-form .plf-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.portal-widget--login-form .plf-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.portal-widget--login-form .plf-ajax-message {
    margin-bottom: 16px;
}

/* ── Form groups ──────────────────────────────────────────────── */
.portal-widget--login-form .plf-group {
    margin-bottom: 18px;
}

.portal-widget--login-form .plf-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Comfortaa', sans-serif;
}

.portal-widget--login-form .plf-forgot {
    color: #0068FF;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s;
}

.portal-widget--login-form .plf-forgot:hover {
    color: #0052cc;
    text-decoration: underline;
}

/* ── Input wrapper ────────────────────────────────────────────── */
.portal-widget--login-form .plf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.portal-widget--login-form .plf-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    pointer-events: none;
    flex-shrink: 0;
    z-index: 1;
}

/* ── Input field ──────────────────────────────────────────────── */
.portal-widget--login-form .plf-input {
    width: 100%;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    color: #111827;
    font-size: 14px;
    padding: 13px 44px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    font-family: inherit;
}

.portal-widget--login-form .plf-input::placeholder {
    color: #9ca3af;
}

.portal-widget--login-form .plf-input:focus {
    border-color: #0068FF;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.12);
}

/* ── Toggle password button ───────────────────────────────────── */
.portal-widget--login-form .plf-toggle-pass {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    z-index: 1;
}

.portal-widget--login-form .plf-toggle-pass:hover {
    color: #374151;
}

/* ── Remember me ──────────────────────────────────────────────── */
.portal-widget--login-form .plf-remember {
    margin-bottom: 22px;
}

.portal-widget--login-form .plf-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    font-family: 'Comfortaa', sans-serif;
}

.portal-widget--login-form .plf-checkbox {
    display: none;
}

.portal-widget--login-form .plf-checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.portal-widget--login-form .plf-checkbox:checked+.plf-checkmark {
    background: #0068FF;
    border-color: #0068FF;
}

.portal-widget--login-form .plf-checkbox:checked+.plf-checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ── Submit button ────────────────────────────────────────────── */
.portal-widget--login-form .plf-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #0068FF;
    border: 1.5px solid #0068FF;
    border-radius: 12px;
    color: #fff;
    font-family: 'Comfortaa', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35);
}

.portal-widget--login-form .plf-submit:hover {
    background: transparent;
    color: #0068FF;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 104, 255, 0.25);
}

.portal-widget--login-form .plf-submit:active {
    transform: translateY(0);
}

.portal-widget--login-form .plf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.portal-widget--login-form .plf-submit__text,
.portal-widget--login-form .plf-submit__loader {
    position: relative;
    z-index: 1;
}

/* ── Divider ──────────────────────────────────────────────────── */
.portal-widget--login-form .plf-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 12px;
}

.portal-widget--login-form .plf-divider::before,
.portal-widget--login-form .plf-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Register link ────────────────────────────────────────────── */
.portal-widget--login-form .plf-register {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin: 18px 0 0;
    font-family: 'Comfortaa', sans-serif;
}

.portal-widget--login-form .plf-register a {
    color: #0068FF;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.portal-widget--login-form .plf-register a:hover {
    color: #0052cc;
    text-decoration: underline;
}

/* ── Back to site ─────────────────────────────────────────────── */
.portal-widget--login-form .plf-back {
    text-align: center;
    margin-top: 20px;
}

.portal-widget--login-form .plf-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.portal-widget--login-form .plf-back a:hover {
    color: #374151;
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes portal-login-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes portal-login-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-7px);
    }

    40% {
        transform: translateX(7px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.portal-widget--login-form .plf-spin {
    animation: portal-login-spin 0.8s linear infinite;
    display: block;
}

.portal-widget--login-form .plf-card.plf-shake {
    animation: portal-login-shake 0.4s ease;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 500px) {
    .portal-widget--login-form .plf-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .portal-widget--login-form .plf-title {
        font-size: 20px;
    }
}