﻿/* ============================================================
   REGISTER PAGE - ADDYBUDDY THEME
   Professional Services Platform
   ============================================================ */

/* ─── Page Container ────────────────────────────────────────────── */
.register-page-wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #f4f9ff 0%, #e8f2fc 100%);
}

/* ─── Hero Section ────────────────────────────────────────────── */
.register-hero {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--blue-accent) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 75, 122, 0.15);
}

.register-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.register-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.register-hero .hero-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.register-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.register-hero h1 .highlight {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto;
    font-weight: 300;
}

.register-hero .stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 28px;
}

.register-hero .stats .stat-item {
    color: white;
    text-align: center;
    position: relative;
}

.register-hero .stats .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.register-hero .stats .stat-item .number {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-hero .stats .stat-item .label {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 400;
}

/* ─── Main Card ────────────────────────────────────────────────── */
.register-card {
    background: #ffffff;
    border-radius: 24px;
    border: none;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(26, 75, 122, 0.06);
}

.register-card:hover {
    box-shadow: 0 12px 60px rgba(26, 75, 122, 0.08);
}

.register-header {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 28px 32px;
    border-bottom: 2px solid #f1f5f9;
    text-align: center;
    position: relative;
}

.register-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-soft));
    border-radius: 2px;
}

.register-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin: 0;
}

.register-header h3 i {
    color: var(--blue-primary);
    margin-right: 10px;
}

.register-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 8px 0 0;
}

.register-header .badge-free {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    color: white;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* ─── Form Body ────────────────────────────────────────────────── */
.form-body-custom {
    padding: 32px;
}

.form-group-custom {
    margin-bottom: 22px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.form-label .required {
    color: #ef4444;
    margin-left: 3px;
}

.form-label .field-icon {
    margin-right: 6px;
    color: var(--blue-primary);
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-custom .input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 4px rgba(26, 75, 122, 0.12);
    background: #ffffff;
}

.form-control-custom.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-control-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f5f9;
}

.form-control-custom::placeholder {
    color: #94a3b8;
    font-weight: 300;
}

.form-control-custom select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* ─── Password Strength ────────────────────────────────────────── */
.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
    padding: 4px;
}

.password-wrapper .toggle-password:hover {
    color: var(--blue-primary);
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}

.password-strength-text {
    font-size: 0.7rem;
    margin-top: 4px;
    color: #64748b;
}

/* ─── Gender Options ───────────────────────────────────────────── */
.gender-options {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: #f8fafc;
    flex: 1;
    justify-content: center;
    min-width: 80px;
}

.gender-option:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.gender-option.selected {
    border-color: var(--blue-primary);
    background: var(--blue-light);
    box-shadow: 0 0 0 4px rgba(26, 75, 122, 0.1);
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-option i {
    font-size: 1.2rem;
}

.gender-option .gender-label {
    font-weight: 500;
}

/* ─── Checkboxes ───────────────────────────────────────────────── */
.form-check-custom {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
}

.form-check-custom input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--blue-primary);
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.form-check-custom label {
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1.5;
}

.form-check-custom label a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-check-custom label a:hover {
    color: var(--blue-accent);
    text-decoration: underline;
}

.whatsapp-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.whatsapp-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue-primary);
    cursor: pointer;
    border-radius: 4px;
}

.whatsapp-check label {
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    font-weight: 500;
}

.whatsapp-check .whatsapp-icon {
    color: #25D366;
    font-size: 1.4rem;
}

/* ─── Captcha ──────────────────────────────────────────────────── */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.captcha-container .captcha-image {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
    color: #fcd34d;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 6px;
    font-family: 'Courier New', monospace;
    min-width: 100px;
    text-align: center;
    user-select: none;
    border: 2px solid rgba(255,215,0,0.2);
}

.captcha-container .captcha-refresh {
    background: none;
    border: none;
    color: var(--blue-primary);
    cursor: pointer;
    font-size: 1.3rem;
    padding: 4px 8px;
    transition: transform 0.3s ease;
}

.captcha-container .captcha-refresh:hover {
    transform: rotate(90deg);
}

.captcha-container input {
    flex: 1;
    min-width: 140px;
    padding-left: 16px;
}

/* ─── Submit Button ────────────────────────────────────────────── */
.btn-register {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    border: none;
    padding: 16px 32px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 75, 122, 0.4);
}

.btn-register:active {
    transform: translateY(-1px);
}

.btn-register i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* ─── Login Link ───────────────────────────────────────────────── */
.login-link {
    text-align: center;
    padding: 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.login-link a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-link a:hover {
    color: var(--blue-accent);
    text-decoration: underline;
}

.login-link .divider {
    color: #e2e8f0;
    margin: 0 8px;
}

/* ─── Alerts ───────────────────────────────────────────────────── */
.validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.validation-summary i {
    font-size: 1.2rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.validation-summary ul {
    margin: 0;
    padding-left: 20px;
}

.user-exists-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-exists-alert i {
    color: #dc2626;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.user-exists-alert .content {
    flex: 1;
}

.user-exists-alert .content strong {
    color: #dc2626;
}

.user-exists-alert .content a {
    color: var(--blue-primary);
    font-weight: 600;
    text-decoration: none;
}

.user-exists-alert .content a:hover {
    text-decoration: underline;
}

/* ─── Already Signed In ───────────────────────────────────────── */
.already-signed-in {
    text-align: center;
    padding: 50px 30px;
}

.already-signed-in .big-icon {
    font-size: 4rem;
    color: var(--blue-primary);
    opacity: 0.5;
    margin-bottom: 16px;
}

.already-signed-in p {
    font-size: 1.1rem;
    color: #64748b;
}

.already-signed-in .btn-dashboard {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.already-signed-in .btn-dashboard:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 75, 122, 0.4);
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .register-hero .stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .register-hero {
        padding: 30px 20px;
    }
    .register-hero h1 {
        font-size: 1.8rem;
    }
    .register-hero p {
        font-size: 1rem;
    }
    .register-hero .stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .register-hero .stats .stat-item .number {
        font-size: 1.4rem;
    }
    .register-hero .stats .stat-item:not(:last-child)::after {
        display: none;
    }
    .form-body-custom {
        padding: 20px;
    }
    .register-header {
        padding: 20px;
    }
    .gender-options {
        flex-direction: row;
    }
    .gender-option {
        flex: 1;
        min-width: 60px;
        padding: 8px 14px;
    }
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-container .captcha-image {
        text-align: center;
    }
    .form-control-custom {
        padding: 10px 14px 10px 40px;
        font-size: 0.85rem;
    }
    .input-group-custom .input-icon {
        left: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .register-hero h1 {
        font-size: 1.5rem;
    }
    .register-hero .stats .stat-item .number {
        font-size: 1.2rem;
    }
    .register-hero .stats .stat-item .label {
        font-size: 0.7rem;
    }
    .gender-option {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .gender-option i {
        font-size: 1rem;
    }
    .btn-register {
        font-size: 0.9rem;
        padding: 14px 20px;
    }
}