.form-container {
    position: relative;
}

.form {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.form.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, #505050, #1f1f1f);
    transform: scale(1.2);
}

.step.completed {
    background: #10b981;
}

.step.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 8px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #969696;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #3a3a3a;
    border-radius: 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #5252520e;
    font-family: inherit;
    color: #c4c4c4; /* default per tema scuro */
}

/* Tema chiaro → testo più scuro */
@media (prefers-color-scheme: light) {
    .form-group input {
        color: #313131;
    }
}

/* Tema scuro → mantiene colore chiaro */
@media (prefers-color-scheme: dark) {
    .form-group input {
        color: #c4c4c4;
    }
}

.form-group input:focus {
    outline: none;
    border-color: #3a3a3a;
    background: #68686846;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0);
    transform: translateY(-1px);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    color: #9d9d9e;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #636363;
}

.password-reveal {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    background: #2c2d2e;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-reveal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.password-reveal::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2c2d2e;
}

.form-transition {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.form-transition.show {
    opacity: 1;
    transform: translateX(0);
}
