/* --- css/components.css (Versione per Bootstrap) --- */

/* --- FORM & INPUT --- */
/* Rinominato per non conflittare con l'input-group nativo di Bootstrap */
.input-group-custom {
    position: relative;
    width: 100%;
}

.input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    background: var(--bg-surface);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--orb-glow);
    outline: none;
}

/* --- BOTTONI GLOBALI --- */
/* Usiamo la stessa classe di Bootstrap, ma forziamo il tuo stile neon */
.btn-primary {
    width: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan)) !important;
    color: #ffffff !important;
    padding: 16px;
    border: none !important;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--orb-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--orb-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- LINK --- */
.link-text {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-text:hover {
    color: var(--neon-cyan);
}

/* --- TOGGLE PASSWORD E REGOLE (Invariati) --- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-input {
    padding-right: 45px; 
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.toggle-password:hover {
    color: var(--neon-cyan);
}

.password-rules {
    list-style: none;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    color: var(--text-dim);
    background: var(--input-bg);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding-left: 12px; /* Aggiunto per fixare il padding delle liste di Bootstrap */
}

.password-rules li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.password-rules li:last-child {
    margin-bottom: 0;
}

.password-rules li i {
    font-size: 0.7rem;
    width: 12px;
    text-align: center;
}

.password-rules li.invalid {
    color: var(--text-dim);
}

.password-rules li.invalid i::before {
    content: "\f111"; 
    font-weight: 400; 
}

.password-rules li.valid {
    color: #22c55e;
    font-weight: 600;
}

.password-rules li.valid i::before {
    content: "\f00c"; 
    font-weight: 900; 
}

/* --- LOADER K-UBE GLOBAL --- */
.kube-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.kube-loader-box {
    background: var(--bg-surface);
    padding: 40px 60px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px var(--orb-glow);
    text-align: center;
    transform: scale(0.9);
    animation: popIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }