/* WigProLocator Auth Forms — Login, Register, Plans, Confirmation */

/* ===================== Shared Form Styles ===================== */
.wpl-auth-form-inner {
    width: 100%;
    max-width: 480px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wpl-auth-title {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #121417;
    line-height: 40px;
    margin: 0 0 8px;
}

.wpl-auth-subtitle {
    font-size: 14px;
    color: #61758a;
    margin: 0 0 8px;
    line-height: 21px;
}

.wpl-auth-subtitle strong {
    color: #121417;
}

/* Message */
.wpl-auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.wpl-auth-message--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.wpl-auth-message--success {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Form */
.wpl-auth-form {
    margin-top: 12px;
}

/* Field */
.wpl-auth-field {
    margin-bottom: 12px;
}

.wpl-auth-field label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #121417;
    line-height: 24px;
    margin-bottom: 8px;
}

.wpl-auth-field input {
    width: 100%;
    height: 56px;
    padding: 16px;
    font-size: 16px;
    color: #121417;
    background: #fff;
    border: 1px solid #dbe0e5;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.wpl-auth-field input::placeholder {
    color: #61758a;
}

.wpl-auth-field input:focus {
    border-color: #4343ea;
    box-shadow: 0 0 0 3px rgba(67, 67, 234, 0.1);
}

.wpl-auth-field input.wpl-field-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.wpl-auth-field-hint {
    display: block;
    font-size: 13px;
    color: #61758a;
    margin-top: 4px;
}

.wpl-auth-field-row {
    display: flex;
    gap: 16px;
}

.wpl-auth-field-row .wpl-auth-field {
    flex: 1;
}

/* Forgot Password */
.wpl-auth-forgot {
    margin-bottom: 12px;
    padding-top: 4px;
}

.wpl-auth-forgot a {
    font-size: 14px;
    color: #61758a;
    text-decoration: none;
    transition: color 0.2s;
}

.wpl-auth-forgot a:hover {
    color: #121417;
}

/* Submit Button */
.wpl-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 16px 24px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: 0.15px;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 12px;
    text-decoration: none;
    box-sizing: border-box;
}

.wpl-auth-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.wpl-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Outline button variant */
.wpl-auth-btn--outline {
    background: #fff;
    color: #121417;
    border: 2px solid #dbe0e5;
}

.wpl-auth-btn--outline:hover {
    background: #f8f9fa;
    border-color: #121417;
    color: #121417;
}

/* Spinner */
.wpl-auth-btn .wpl-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wpl-spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes wpl-spin {
    to { transform: rotate(360deg); }
}

/* Switch link */
.wpl-auth-switch {
    font-size: 14px;
    color: #61758a;
    text-align: center;
    margin-top: 16px;
    line-height: 21px;
}

.wpl-auth-switch a {
    color: #4343ea;
    font-weight: 700;
    text-decoration: underline;
}

.wpl-auth-switch a:hover {
    color: #3232b8;
}

/* ===================== Choose Plan Page ===================== */
.wpl-plans-wrap {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wpl-plans-title {
    font-size: 28px;
    font-weight: 700;
    color: #121417;
    margin: 0 0 8px;
}

.wpl-plans-subtitle {
    font-size: 16px;
    color: #61758a;
    margin: 0 0 32px;
}

.wpl-plans-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.wpl-plan-card-select {
    flex: 1;
    max-width: 340px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: left;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wpl-plan-card-select:hover {
    border-color: #c4c7cc;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Featured card */
.wpl-plan-card-select--featured {
    border-color: #121417;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wpl-plan-card-select--featured:hover {
    border-color: #000;
}

.wpl-plan-badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #121417;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.wpl-plan-card-header {
    margin-bottom: 20px;
}

.wpl-plan-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #121417;
    margin: 0 0 8px;
}

.wpl-plan-card-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.wpl-plan-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #121417;
    line-height: 1;
}

.wpl-plan-price-period {
    font-size: 16px;
    color: #61758a;
    font-weight: 400;
}

.wpl-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.wpl-plan-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    position: relative;
    padding-left: 24px;
}

.wpl-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
}

.wpl-plan-features li strong {
    color: #121417;
}

.wpl-plan-card-select .wpl-auth-btn {
    margin-top: 0;
}

/* ===================== Confirmation Page ===================== */
.wpl-confirmation-wrap {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
    border-radius: 16px;
}

.wpl-confirmation-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.wpl-confirmation-title {
    font-size: 24px;
    font-weight: 700;
    color: #121417;
    margin: 0 0 12px;
}

.wpl-confirmation-text {
    font-size: 15px;
    color: #61758a;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.wpl-confirmation-btn {
    display: inline-flex;
    width: auto;
    padding: 14px 32px;
}

/* ===================== Responsive ===================== */
@media (max-width: 700px) {
    .wpl-plans-grid {
        flex-direction: column;
        align-items: center;
    }

    .wpl-plan-card-select {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .wpl-auth-title {
        font-size: 26px;
        line-height: 34px;
    }

    .wpl-auth-field input {
        height: 48px;
        padding: 12px;
        font-size: 15px;
    }

    .wpl-auth-btn {
        height: 48px;
        font-size: 15px;
    }

    .wpl-auth-field-row {
        flex-direction: column;
        gap: 0;
    }

    .wpl-plans-title {
        font-size: 24px;
    }

    .wpl-plan-price-amount {
        font-size: 28px;
    }

    .wpl-confirmation-wrap {
        padding: 32px 16px;
    }
}
