:root {
    --azul-bep: #2e2f87;
    --azul-dark: #272560;
    --laranja-bep: #fb9d08;
    --laranja-sec: #eb5b2a;
    --azul-escuro: #1a1b4b;
    --success: #10b981;
    --error: #ef4444;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto;
    padding: 20px 0;
}

/* BACKGROUND ANIMADO */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--azul-bep) 0%, var(--azul-dark) 100%);
}

.background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

.background::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(251, 157, 8, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* PARTICULAS */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(-100%);
    }
    to {
        transform: translateY(-100vh) translateX(100%);
    }
}

/* CONTAINER PRINCIPAL */
.register-container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

/* CARD DE REGISTRO */
.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 40px 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.register-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
}

/* LOGO */
.logo-container {
    text-align: center;
    margin-bottom: 28px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--azul-bep) 0%, var(--azul-dark) 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    box-shadow: 0 10px 20px -5px rgba(46, 47, 135, 0.4);
}

.logo-icon i {
    font-size: 36px;
    color: white;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--laranja-bep), var(--laranja-sec));
    opacity: 0.3;
    z-index: -1;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.logo-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--azul-bep);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.logo-text p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* PROGRESSO */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 16px;
}

.step {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: #e2e8f0;
    transition: var(--transition);
}

.step.active {
    width: 24px;
    background: var(--laranja-bep);
}

/* FORMULÁRIO */
.register-form {
    margin-top: 24px;
}

/* ESTILIZAÇÃO DO FORM DJANGO */
.register-form p {
    margin-bottom: 20px;
    position: relative;
}

.register-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.register-form label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--laranja-bep);
    border-radius: 50%;
    margin-right: 4px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="number"],
.register-form select,
.register-form textarea {
    width: 100%;
    height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 16px;
    font-size: 15px;
    color: #1e293b;
    transition: var(--transition);
    background: white;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
    border-color: var(--azul-bep);
    box-shadow: 0 0 0 4px rgba(46, 47, 135, 0.1), 0 4px 8px -2px rgba(0,0,0,0.1);
    outline: none;
}

.register-form input:hover:not(:focus) {
    border-color: #cbd5e1;
}

.register-form textarea {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
    resize: vertical;
}

/* HELP TEXT */
.register-form .helptext {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    padding-left: 12px;
    position: relative;
}

.register-form .helptext::before {
    content: 'i';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #475569;
}

.register-form .helptext ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.register-form .helptext li {
    margin-bottom: 4px;
}

/* ERROR MESSAGES */
.register-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.register-form .errorlist li {
    background: #fef2f2;
    border: 2px solid #fee2e2;
    border-radius: 12px;
    padding: 10px 14px;
    color: #991b1b;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.register-form .errorlist li::before {
    content: '⚠️';
    font-size: 14px;
}

/* CHECKBOX E RADIO */
.register-form input[type="checkbox"],
.register-form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--azul-bep);
}

/* REQUIRED FIELD INDICATOR */
.register-form .required label::after {
    content: '*';
    color: var(--laranja-sec);
    margin-left: 4px;
}

/* BOTÃO DE REGISTRO */
.btn-register {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, var(--laranja-bep) 0%, var(--laranja-sec) 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px -8px rgba(251, 157, 8, 0.5);
    position: relative;
    overflow: hidden;
    margin-top: 32px;
}

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

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -8px rgba(235, 91, 42, 0.6);
}

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

.btn-register i {
    font-size: 20px;
    transition: var(--transition);
}

.btn-register:hover i {
    transform: translateX(5px);
}

/* TERMOS E CONDIÇÕES */
.terms {
    margin: 24px 0 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.terms label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.terms a {
    color: var(--azul-bep);
    font-weight: 600;
    text-decoration: none;
}

.terms a:hover {
    color: var(--laranja-bep);
    text-decoration: underline;
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* LINK DE LOGIN */
.login-link {
    text-align: center;
}

.login-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--azul-bep);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 40px;
    background: rgba(46, 47, 135, 0.05);
    transition: var(--transition);
    border: 2px solid transparent;
}

.login-link a:hover {
    background: rgba(46, 47, 135, 0.1);
    transform: translateY(-2px);
    border-color: rgba(46, 47, 135, 0.2);
}

.login-link i {
    font-size: 18px;
}

/* PASSWORD STRENGTH METER */
.password-strength {
    margin-top: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: var(--transition);
    border-radius: 4px;
}

.strength-fill.weak { width: 33%; background: #ef4444; }
.strength-fill.medium { width: 66%; background: #f59e0b; }
.strength-fill.strong { width: 100%; background: #10b981; }

.strength-text {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .register-container {
        padding: 16px;
    }

    .register-card {
        padding: 30px 24px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-icon i {
        font-size: 30px;
    }

    .logo-text h2 {
        font-size: 22px;
    }
}

/* LOADING STATE */
.btn-register.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-register.loading i {
    animation: spin 1s linear infinite;
}

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

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.footer i {
    color: var(--laranja-bep);
    margin: 0 4px;
}