﻿/* ========================================
   REGISTER PAGE VARIABLES (Dark Theme)
   ======================================== */
:root {
    /* Background Colors */
    --bg-color: #0F0F0F;
    --card-color: #1A1A1A;
    --text-color: #F0F0F0;
    --text-faded: #888;
    --primary-color: #8A2BE2;
    --primary-hover: #9F4BFF;
    /* Gradientes */
    --gradient-1-start: #1A0F2B;
    --gradient-1-end: #0F0F0F;
    --gradient-2-start: #0F0F0F;
    --gradient-2-end: #1A0F2B;
    /* Cores alternativas para seções */
    --section-alt-bg: #151515;
    /* Tipografia */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Status Colors */
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #1A0F2B 0%, #8A2BE2 50%, #1A0F2B 100%);
    --grad-accent: linear-gradient(135deg, #8A2BE2 0%, #9F4BFF 100%);
    --grad-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    padding-left: calc(var(--nav-width-desktop) + (var(--nav-padding-desktop) * 2) + 30px);
    position: relative;
    overflow: hidden;
}

.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--grad-primary);
    top: -250px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--grad-accent);
    bottom: -150px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--grad-success);
    top: 50%;
    left: 15%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.register-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* LEFT SIDE - ILLUSTRATION */
.register-illustration {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 40px;
}

.illustration-header {
    background: var(--card-color);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
    border: 1px solid #333;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .illustration-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--grad-primary);
    }

.brand-logo {
    width: 80px;
    height: 80px;
    background: var(--grad-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.brand-title {
    font-size: 32px;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.brand-subtitle {
    font-size: 15px;
    color: var(--text-faded);
}

.illustration-card {
    background: var(--card-color);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(138, 43, 226, 0.15);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .illustration-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(138, 43, 226, 0.25);
    }

    .illustration-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--grad-primary);
    }

.illustration-icon {
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    width: max-content;
    padding: 15px;
    color: white;
    margin-bottom: 16px;
}

    .illustration-icon span {
        color: var(--primary-color);
        font-size: 40px;
    }

.illustration-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.illustration-text {
    font-size: 14px;
    color: var(--text-faded);
    line-height: 1.6;
}

/* RIGHT SIDE - FORM */
.register-card {
    background: var(--card-color);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.25);
    padding: 48px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

    .register-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 400px;
        height: 400px;
        background: var(--grad-primary);
        opacity: 0.04;
        border-radius: 50%;
    }

.register-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

.register-icon {
    width: max-content;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.register-icon span{
    color: var(--primary-color);
    font-size: 50px;
}

.register-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.register-subtitle {
    font-size: 15px;
    color: var(--text-faded);
}

/* PROGRESS STEPS */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--section-alt-bg);
    border: 3px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-faded);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--grad-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-faded);
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-line {
    height: 3px;
    flex: 1;
    background: #333;
    margin: 0 -10px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.completed + .step-line {
    background: var(--success);
}

/* FORM STEPS */
.form-step {
    display: none;
}

    .form-step.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.label-icon {
    font-size: 14px;
    color: var(--primary-color);
}

.optional-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faded);
    background: var(--section-alt-bg);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 4px;
}

.auto-badge {
    font-size: 11px;
    font-weight: 500;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 4px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faded);
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 40px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--section-alt-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    -webkit-text-fill-color: var(--text-color);
}

    .form-input:focus {
        background: var(--bg-color);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.2);
    }

        .form-input:focus + .input-icon {
            color: var(--primary-color);
        }

    .form-input.error {
        border-color: var(--danger);
        background: rgba(239, 68, 68, 0.1);
    }

    /* Fix autofill background color - more aggressive for dark theme */
    .form-input:-webkit-autofill,
    .form-input:-webkit-autofill:hover,
    .form-input:-webkit-autofill:focus,
    .form-input:-webkit-autofill:active {
        -webkit-background-clip: text;
        -webkit-text-fill-color: #F0F0F0 !important;
        transition: background-color 5000s ease-in-out 0s;
        box-shadow: inset 0 0 20px 20px #151515 !important;
        background-color: #151515 !important;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-background-clip: text;
        -webkit-text-fill-color: #F0F0F0 !important;
        transition: background-color 5000s ease-in-out 0s;
        box-shadow: inset 0 0 20px 20px #151515 !important;
        background-color: #151515 !important;
    }

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-faded);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: all 0.2s ease;
}

    .toggle-password:hover {
        color: var(--primary-color);
    }

.error-message {
    font-size: 13px;
    color: var(--danger);
    margin-top: 8px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* PASSWORD STRENGTH */
.password-strength {
    margin-top: 12px;
}

.strength-bars {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--text-faded);
    font-weight: 500;
}

.password-strength.weak .strength-bar:nth-child(1) {
    background: var(--danger);
}

.password-strength.fair .strength-bar:nth-child(1),
.password-strength.fair .strength-bar:nth-child(2) {
    background: var(--warning);
}

.password-strength.good .strength-bar:nth-child(1),
.password-strength.good .strength-bar:nth-child(2),
.password-strength.good .strength-bar:nth-child(3) {
    background: #3b82f6;
}

.password-strength.strong .strength-bar {
    background: var(--success);
}

/* TERMS BOX */
.terms-box {
    background: var(--section-alt-bg);
    padding: 28px;
    border-radius: 16px;
    border: 2px solid #333;
    margin-bottom: 24px;
    text-align: center;
}

.terms-icon {
    width: 64px;
    height: 64px;
    background: var(--grad-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 16px;
}

.terms-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.terms-text {
    font-size: 14px;
    color: var(--text-faded);
    line-height: 1.6;
}

/* MODERN CHECKBOX */
.checkbox-wrapper-modern {
    display: flex;
    align-items: start;
    gap: 12px;
}

.checkbox-input-modern {
    display: none;
}

.checkbox-label-modern {
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #333;
    border-radius: 8px;
    background: var(--section-alt-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

    .checkbox-custom::after {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: white;
        font-size: 12px;
        opacity: 0;
        transform: scale(0);
        transition: all 0.2s ease;
    }

.checkbox-input-modern:checked + .checkbox-label-modern .checkbox-custom {
    background: var(--grad-primary);
    border-color: var(--primary-color);
}

    .checkbox-input-modern:checked + .checkbox-label-modern .checkbox-custom::after {
        opacity: 1;
        transform: scale(1);
    }

.checkbox-text {
    font-size: 14px;
    color: var(--text-faded);
    line-height: 1.5;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

    .terms-link:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

/* BUTTONS */
.btn-primary {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    color: white;
    background: var(--grad-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(138, 43, 226, 0.5);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.btn-secondary {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--card-color);
    border: 2px solid #333;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-secondary:hover {
        background: var(--section-alt-bg);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #333;
    }

.divider-text {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-faded);
}

.login-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-faded);
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

    .login-link:hover {
        opacity: 0.8;
    }

/* RESPONSIVE */

@media (max-width: 1480px) {
    .register-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .register-illustration {
        position: static;
    }

    .illustration-card {
        display: none;
    }

}
@media (max-width: 1024px) {
  


    .main-content{
        padding-left: 20px;
    }
}



@media (max-width: 640px) {
    .register-card {
        padding: 32px 24px;
    }

    .register-title {
        font-size: 22px;
    }

    .progress-steps {
        margin-bottom: 28px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* INTERNATIONAL PHONE INPUT CUSTOMIZATION */
.iti {
    width: 100%;
}

.iti__flag-container {
    padding: 0 12px;
}

.iti__selected-flag {
    background-color: transparent;
    padding: 0 0 0 12px;
}

.iti__country-list {
    background-color: var(--card-color);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    max-height: 200px;
}

.iti__country {
    padding: 8px 12px;
    color: var(--text-color);
}

.iti__country:hover {
    background-color: var(--section-alt-bg);
}

.iti__country.iti__highlight {
    background-color: rgba(138, 43, 226, 0.2);
}

.iti__divider {
    border-bottom: 1px solid #333;
}

.iti__search-input {
    background-color: var(--section-alt-bg);
    border: 1px solid #333;
    color: var(--text-color);
    padding: 8px 12px;
    margin: 8px;
    width: calc(100% - 16px);
    border-radius: 6px;
}

.iti__search-input::placeholder {
    color: var(--text-faded);
}

.iti__search-input:focus {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
    outline: none;
}

.iti__dial-code {
    color: var(--text-faded);
}

.iti__country-name {
    color: var(--text-color);
}
