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

:root {
    --primary: #8B5CF6;
    --primary-dark: #6D28D9;
    --secondary: #EC4899;
    --accent: #F97316;
    --dark: #1E1B2E;
    --darker: #0F0D1A;
    --gray: #2D2A3E;
    --light-gray: #A78BFA;
    --error: #EF4444;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: #fff;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.btn-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gray);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: var(--dark);
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.back-arrow {
    transition: transform 0.3s;
    filter: brightness(0) invert(1);
}

.btn-back:hover .back-arrow {
    transform: translateX(-3px);
}

.form-container {
    background: var(--dark);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    margin: 6rem auto 2rem;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.cadastro h1 {
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.highlight {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cadastro p {
    text-align: center;
    color: var(--light-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.obrigatorio {
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1.6rem;
    margin-top: -1.6rem;
}

.obrigatorio p {
    color: var(--error);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.form-group {
    margin-bottom: 1.8rem;
}

.palavras {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--gray);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--darker);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.form-group input::placeholder {
    color: rgba(167, 139, 250, 0.5);
}

.japossuiconta {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--light-gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.botaologin {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.botaologin:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .btn-back {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .back-arrow {
        width: 30px;
        height: 24px;
    }

    .back-text {
        display: none;
    }

    .form-container {
        padding: 2rem 1.5rem;
        margin: 5rem auto 2rem;
    }

    .cadastro h1 {
        font-size: 2rem;
    }
}
