/* ─────────────────────────────────────────────────────────────────
   Franchise Pro — Registration Styles
   ───────────────────────────────────────────────────────────────── */

.fp-register-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.fp-register-header {
    text-align: center;
    margin-bottom: 40px;
}
.fp-register-header h1 {
    font-size: 2rem;
    background: var(--fp-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.fp-register-header h2 {
    font-size: 1.5rem;
    color: var(--fp-text);
}
.fp-register-header p {
    font-size: 1.0625rem;
    color: var(--fp-text-secondary);
}
.fp-back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--fp-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
}
.fp-back-link:hover { text-decoration: underline; }

/* Role Grid */
.fp-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.fp-role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--fp-bg-card);
    border: 2px solid transparent;
    border-radius: var(--fp-radius-xl);
    box-shadow: var(--fp-shadow-md);
    transition: var(--fp-transition);
    text-decoration: none;
    color: var(--fp-text);
    position: relative;
    overflow: hidden;
}
.fp-role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--fp-radius-xl) var(--fp-radius-xl) 0 0;
}
.fp-role-franchise::before { background: var(--fp-gradient-primary); }
.fp-role-affiliate::before { background: var(--fp-gradient-accent); }
.fp-role-telecaller::before { background: var(--fp-gradient-warm); }

.fp-role-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fp-shadow-xl);
    border-color: var(--fp-primary-light);
}
.fp-role-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.fp-role-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    border: none;
    padding: 0;
}
.fp-role-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
}
.fp-role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--fp-radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    background: var(--fp-gradient-primary);
    color: #fff;
}

/* Form */
.fp-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--fp-bg-card);
    padding: 32px;
    border-radius: var(--fp-radius-xl);
    box-shadow: var(--fp-shadow-lg);
}

/* Success */
.fp-success-wrap {
    text-align: center;
    padding: 80px 20px;
}
.fp-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: fpPulse 2s infinite;
}
.fp-success-wrap h2 {
    font-size: 1.75rem;
    background: var(--fp-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.fp-success-wrap p {
    font-size: 1.0625rem;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Login Prompt */
.fp-login-prompt, .fp-access-denied, .fp-already-registered {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.0625rem;
}
.fp-login-prompt a, .fp-already-registered a {
    color: var(--fp-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .fp-role-grid { grid-template-columns: 1fr; }
    .fp-form { padding: 24px 20px; }
    .fp-register-header h1 { font-size: 1.5rem; }
}

/* ── Password Reset Custom UI ─────────────────────────────────────────── */
.fp-auth-container.fp-gradient-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    padding: 20px;
    margin: -20px; /* If rendered inside standard WP content area, bleed out */
}

.fp-auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    box-sizing: border-box;
}

.fp-auth-header.text-center {
    text-align: center;
    margin-bottom: 30px;
}

.fp-icon-locked {
    font-size: 32px;
    margin-bottom: 15px;
    display: inline-block;
}

.fp-auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 10px 0;
}

.fp-auth-header p {
    color: #636e72;
    font-size: 14px;
    margin: 0;
}

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

.fp-auth-form input[type="text"],
.fp-auth-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.fp-auth-form input:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.fp-password-wrapper {
    position: relative;
}

.fp-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #636e72;
    display: flex;
    align-items: center;
}

.fp-btn-block {
    width: 100%;
    padding: 12px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.fp-btn-block:hover {
    background: #5f27cd;
}

.fp-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.fp-alert.error {
    background: #ffeaa7;
    color: #d63031;
    border: 1px solid #fdcb6e;
}

.fp-alert.success {
    background: #55efc4;
    color: #00b894;
    border: 1px solid #00b894;
}

.fp-password-requirements {
    margin-bottom: 20px;
    font-size: 13px;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-req-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-req-item.valid {
    color: #00b894;
}

.fp-req-item.valid .fp-req-icon {
    background: #00b894;
}

.fp-req-icon {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #dfe6e9;
    display: inline-block;
}

.fp-auth-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #b2bec3;
}

.fp-back-link {
    color: #b2bec3;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
}

.fp-back-link:hover {
    color: #636e72;
}

.fp-powered-by {
    font-size: 12px;
    opacity: 0.7;
}
