/* ── Login wrapper ── */

.pda-wl-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    min-height: 400px;
}

.pda-wl-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 40px 36px;
    border-top: 4px solid #fbaf33;
}

/* ── Header ── */

.pda-wl-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.pda-wl-login-logo {
    max-width: 160px;
    max-height: 60px;
    margin-bottom: 20px;
}

.pda-wl-login-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
}

.pda-wl-login-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ── Error message ── */

.pda-wl-login-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pda-wl-login-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: #dc2626;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* ── Form fields ── */

.pda-wl-field {
    margin-bottom: 20px;
}

.pda-wl-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.pda-wl-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pda-wl-input-icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.pda-wl-input-wrap input[type="text"],
.pda-wl-input-wrap input[type="email"],
.pda-wl-input-wrap input[type="password"] {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #000000;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

.pda-wl-input-wrap input::placeholder {
    color: #9ca3af;
}

.pda-wl-input-wrap input:focus {
    border-color: #fbaf33;
    box-shadow: 0 0 0 3px rgba(251, 175, 51, 0.15);
}

/* ── Password toggle ── */

.pda-wl-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.pda-wl-toggle-pw:hover {
    color: #000000;
}

/* ── Options row ── */

.pda-wl-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
}

.pda-wl-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #374151;
}

.pda-wl-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #fbaf33;
}

.pda-wl-forgot {
    color: #fbaf33;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pda-wl-forgot:hover {
    color: #e59d1f;
}

/* ── Notices ── */

.pda-wl-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pda-wl-notice-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.pda-wl-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ── Login / signup toggle ── */

.pda-wl-toggle-text {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.pda-wl-toggle-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #fbaf33;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pda-wl-toggle-link:hover {
    color: #e59d1f;
}

.pda-wl-resend-wrap {
    margin: -12px 0 16px;
    text-align: center;
}

.pda-wl-resend-link {
    background: none;
    border: none;
    padding: 0;
    color: #fbaf33;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.pda-wl-resend-link:hover {
    color: #e59d1f;
}

.pda-wl-resend-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Submit button ── */

.pda-wl-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 24px;
    background: #fbaf33;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    text-align: center;
    gap: 8px;
    line-height: 1.4;
}

.pda-wl-submit:hover {
    background: #e59d1f;
    color: #000000;
}

.pda-wl-submit:active {
    transform: scale(0.99);
}

.pda-wl-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner ── */

.pda-wl-spinner {
    animation: pda-wl-spin 0.8s linear infinite;
}

@keyframes pda-wl-spin {
    to { transform: rotate(360deg); }
}

/* ── Welcome card (logged in) ── */

.pda-wl-welcome-card {
    text-align: center;
}

.pda-wl-welcome-avatar {
    margin-bottom: 16px;
}

.pda-wl-welcome-avatar img {
    border-radius: 50%;
    border: 3px solid #fbaf33;
    width: 64px;
    height: 64px;
}

.pda-wl-welcome-card h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
}

.pda-wl-welcome-role {
    display: inline-block;
    margin: 0 0 24px;
    padding: 4px 14px;
    background: #fff9eb;
    color: #b27a00;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pda-wl-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pda-wl-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.2s ease;
}

.pda-wl-btn-secondary:hover {
    border-color: #fbaf33;
    color: #000000;
}

.pda-wl-logout-link {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.pda-wl-logout-link:hover {
    color: #dc2626;
}

/* ── Responsive ── */

@media (max-width: 480px) {
    .pda-wl-login-card {
        padding: 28px 20px;
    }

    .pda-wl-login-header h2 {
        font-size: 20px;
    }

    .pda-wl-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
