:root {
    --glow-color: rgba(255, 0, 0, 0.5);
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevenir zoom no mobile */
input, textarea, select, button {
    font-size: 16px !important; /* Mínimo 16px para evitar zoom no iOS */
    touch-action: manipulation;
}

/* Desativar zoom duplo-toque */
html {
    touch-action: manipulation;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Grid Background */
.grid-background {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    z-index: -1;
    max-height: 100%;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    fill: rgba(255, 0, 0, 0.6);
    stroke: rgba(255, 0, 0, 0.6);
    mask-image: radial-gradient(600px circle at center, white, transparent);
    inset-x: 0;
    top: -10%;
    bottom: -10%;
    height: 120%;
    transform: skewY(12deg);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes border-glow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

/* Estilos do Card de Registro */
.register-card {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
    border-radius: 1.25rem;
    width: 90%;
    max-width: 500px;
}

.register-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 90% 10%, rgba(255, 0, 0, 0.07) 0%, transparent 70%),
        radial-gradient(circle at 10% 90%, rgba(255, 0, 0, 0.07) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.register-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 0, 0, 0.1);
}

.register-card:hover::before {
    opacity: 1;
}

.brand-logo {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

.register-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.register-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    padding: 1rem 1rem 1rem 2.5rem;
    width: 100%;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 0, 0, 0.6);
}

.submit-btn-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 9999px;
    padding: 2px;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
    width: 100%;
    margin-top: 1rem;
}

.submit-btn-animation {
    position: absolute;
    inset: -1000%;
    background: conic-gradient(from 90deg at 50% 50%, #ff9a9e 0%, #ff0000 50%, #ff9a9e 100%);
    animation: spin 3s linear infinite;
}

.submit-btn-inner {
    display: inline-flex;
    height: 100%;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(0.75rem);
}

.submit-btn {
    display: inline-flex;
    border-radius: 9999px;
    text-align: center;
    align-items: center;
    width: 100%;
    justify-content: center;
    background: linear-gradient(to right top, rgba(255, 100, 100, 0.2), rgba(255, 50, 50, 0.3), transparent);
    color: #ffffff;
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: all 0.3s;
    padding: 1.25rem 3rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
}

.submit-btn:hover {
    background: linear-gradient(to right top, rgba(255, 100, 100, 0.3), rgba(255, 50, 50, 0.4), transparent);
    transform: translateY(-2px);
}

.status-message {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

.success-message {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4ADE80;
}

.register-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.register-link {
    color: rgba(255, 0, 0, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.register-link:hover {
    color: #ff0000;
    text-decoration: underline;
}