/* --- Layout --- */
.register-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding: 50px;
    background-image: url('../images/bgregister.png');
    background-size: cover;
    background-position: center;    
}

.register-card {
    width: 550px;
    padding: 35px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.644), rgba(10, 10, 15, 0.87));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    animation: fadeIn 0.6s ease;
}

.neon-title {
    text-align: center;
    color: #00ffff;
    text-shadow: 0 0 12px #00ffff;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 5px;
}

label {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 13px;
}

input, select {
    width: 100%;
    padding: 10px;
    border-radius: 16px; /* curva suave nas laterais */
    
    border: none;              /* remove todas */
    border-bottom: 1px solid rgba(0.2,255,255,0.2); /* mantém só embaixo */
    
    background: rgba(0,0,0,0.35);
    opacity: 0.6;
    backdrop-filter: blur(10px);
    color: rgb(161, 217, 255);
    transition: 0.3s;
}


input:focus, select:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

/* Botão */
.neon-button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #00ffff, #38bdf8);
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.neon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px #00ffff;
}

/* Barra de força */
.password-strength {
    height: 10px;
    width: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

#strengthFill {
    height: 100%;
    width: 0%;
    transition: width 0.35s ease;
    border-radius: 10px;
}

/* Cores e animação da barra */
#strengthFill.weak {
    background: linear-gradient(90deg, #ff0000, #ff4757, #ff0000);
    background-size: 200% 100%;
    animation: rgbWeak 1.5s linear infinite;
    box-shadow: 0 0 8px #ff4757;
}

#strengthFill.medium {
    background: linear-gradient(90deg, #ffa502, #ffdd59, #ffa502);
    background-size: 200% 100%;
    animation: rgbMedium 2s linear infinite;
    box-shadow: 0 0 8px #ffa502;
}

#strengthFill.strong {
    background: linear-gradient(90deg, #2ed573, #00ffff, #2ed573);
    background-size: 250% 100%;
    animation: rgbStrong 2.5s linear infinite;
    box-shadow: 0 0 10px #2ed573;
}

@keyframes rgbWeak { from {background-position:0% 50%;} to{background-position:100% 50%;} }
@keyframes rgbMedium { from {background-position:100% 50%;} to{background-position:0% 50%;} }
@keyframes rgbStrong { from {background-position:0% 50%;} to{background-position:200% 50%;} }

.strength-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

/* Regras da senha */
.password-rules {
    list-style: none;
    padding: 5px 0 0;
    font-size: 12px;
}

.password-rules li {
    color: #64748b;
    transition: 0.3s;
}

.password-rules li.valid {
    color: #22c55e;
}

/* Match senha */
.match-text {
    font-size: 12px;
    display: block;
    margin-top: 6px;
}

.match-ok { color: #22c55e; }
.match-bad { color: #ef4444; }

/* Erro */
.error-msg { color: #f87171; text-align: center; margin-bottom: 10px; }

@keyframes fadeIn {
    from { opacity:0; transform:translateY(10px); }
    to { opacity:1; transform:translateY(0); }
}

/* Shake */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.shake { animation: shake 0.35s ease-in-out; }

.gender-toggle {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    padding: 5px;
}

.gender-btn {
    flex: 1;
    padding: 5px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0,255,255,0.2);
    background: rgba(0,0,0,0.4);
    color: #94a3b8;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.gender-btn.selected {
    background: linear-gradient(90deg, #00ffff, #38bdf8);
    color: black;
    border-color: #00ffff;
    box-shadow: 0 0 12px #00ffff;
}

/* Radios estilo moderno */
.radio-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    accent-color: #00ffff;
    width: 18px;
    height: 18px;
}

/* Input date moderno */
input[type="date"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,255,255,0.2);
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

input[type="date"]:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

/* Placeholder mais claro */
input[type="date"]::placeholder {
    color: #64748b;
}
.input-group.floating {
    position: relative;
}

.input-group.floating input {
    width: 100%;
    padding: 14px;
}

.input-group.floating label {
    position: absolute;
    left: 12px;
    top: 10px;
    font-size: 12px;
    color: #94a3b8;
    pointer-events: none;
}

/* Logo */
.registro-logo {
    display: block;
    width: 42px;
    margin-top: 10px;
}
/* Input com ícone */
.input-group.with-icon {
    position: relative;
}

.input-group.with-icon input,
.input-group.with-icon select {
    width: 100%;
    padding: 12px 14px 12px 40px;
}

/* Ícone */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: rgba(255,255,255,0.35);
    transition: 0.25s ease;
    pointer-events: none;
}

/* Glow no foco */
.input-group.with-icon input:focus,
.input-group.with-icon select:focus {
    border-color: rgba(230,57,70,0.6);
    box-shadow: 0 0 10px rgba(230,57,70,0.25);
}

/* Ícone reage ao foco */
.input-group.with-icon input:focus ~ .input-icon,
.input-group.with-icon select:focus ~ .input-icon {
    color: rgba(230,57,70,1);
    transform: translateY(-50%) scale(1.1);
}

/* Quando digitando */
.input-group.typing .input-icon {
    color: rgba(230,57,70,1);
}