/* Paloyan Auth Styles */
.pmv-auth-wrapper {
    max-width: 850px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--radius, 8px);
    box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.08));
    overflow: hidden;
}

.pmv-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border, #e1e1e1);
}

.pmv-tab-btn {
    flex: 1;
    padding: 16px;
    background: var(--color-bg, #f8f9fa);
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-muted, #666);
    cursor: pointer;
    transition: all 0.3s;
}

.pmv-tab-btn:hover {
    color: var(--color-primary, #1a3a8a);
}

.pmv-tab-btn.active {
    background: #fff;
    color: var(--color-primary, #1a3a8a);
    border-bottom-color: var(--color-primary, #1a3a8a);
}

.pmv-tab-content {
    display: none;
    padding: 32px;
}

.pmv-tab-content.active {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.pmv-form h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--color-text, #333);
}

.pmv-form p {
    color: var(--color-muted, #666);
    margin-bottom: 24px;
}

.pmv-form-group {
    margin-bottom: 20px;
}

.pmv-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text, #333);
}

.pmv-form-group label .required {
    color: #ff4757;
}

.pmv-phone-input-group {
    display: flex;
    border: 1px solid var(--color-border, #e1e1e1);
    border-radius: 4px;
    overflow: hidden;
}

.pmv-phone-input-group .country-code {
    padding: 12px 16px;
    background: var(--color-bg, #f8f9fa);
    border-right: 1px solid var(--color-border, #e1e1e1);
    color: var(--color-muted, #666);
    font-weight: 600;
}

.pmv-phone-input-group input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 1rem;
    outline: none;
}

.pmv-form-group input[type="text"],
.pmv-form-group input[type="password"],
.pmv-form-group input[type="email"],
.pmv-form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border, #e1e1e1);
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.pmv-form-group input:focus {
    border-color: var(--color-primary, #1a3a8a);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.pmv-form-actions {
    margin-top: 24px;
}

.pmv-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--color-primary, #1a3a8a);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.pmv-btn-primary:hover {
    background: var(--color-secondary, #1558c0);
}

.pmv-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pmv-auth-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.pmv-auth-message.error {
    background: #f8d7da;
    color: #842029;
    display: block;
}

.pmv-auth-message.success {
    background: #d1e7dd;
    color: #0f5132;
    display: block;
}

.pmv-otp-timer {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-muted, #666);
}

/* Split Login Styling */
.pmv-login-split {
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.pmv-split-section {
    flex: 1;
    padding: 32px;
    background: #fafafa;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.pmv-split-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.pmv-split-divider::before,
.pmv-split-divider::after {
    content: '';
    flex: 1;
    width: 1px;
    background: var(--color-border);
    margin: 10px 0;
}

.pmv-login-extras a {
    color: var(--color-primary);
    text-decoration: none;
}

.pmv-login-extras a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pmv-login-split {
        flex-direction: column;
        gap: 24px;
    }

    .pmv-split-divider {
        flex-direction: row;
    }

    .pmv-split-divider::before,
    .pmv-split-divider::after {
        height: 1px;
        width: auto;
        margin: 0 16px;
    }
}

/* Vendor Registration Form Styling */
.pmv-registration-wrap h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--color-text, #333);
}

.pmv-form-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .pmv-form-sections-grid {
        grid-template-columns: 1fr;
    }
}

.pmv-form-section {
    margin-bottom: 24px;
    padding: 24px;
    background: #fafafa;
    border: 1px solid var(--color-border, #e1e1e1);
    border-radius: var(--radius, 8px);
}

.pmv-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-primary, #1a3a8a);
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 8px;
    display: inline-block;
}

.pmv-registration-wrap .form-row {
    margin-bottom: 16px;
}

.pmv-registration-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text, #333);
}

.pmv-registration-wrap .required {
    color: #ff4757;
}

.pmv-registration-wrap input[type="text"],
.pmv-registration-wrap input[type="email"],
.pmv-registration-wrap input[type="password"],
.pmv-registration-wrap input[type="tel"],
.pmv-registration-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border, #e1e1e1);
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s;
    outline: none;
    font-family: inherit;
}

.pmv-registration-wrap textarea {
    resize: vertical;
    min-height: 100px;
}

.pmv-registration-wrap input:focus,
.pmv-registration-wrap textarea:focus {
    border-color: var(--color-primary, #1a3a8a);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.pmv-registration-wrap input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

.pmv-registration-wrap .button {
    width: 100%;
    padding: 14px;
    background: var(--color-primary, #1a3a8a);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.pmv-registration-wrap .button:hover {
    background: var(--color-secondary, #1558c0);
}
