/* --- BASE --- */
body {
    background: #F5F7FA;
    margin: 0;
    padding: 0;
    font-family: "Golos Text", sans-serif;
}

header.top-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}



.brand {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1a1c1d;
    text-transform: uppercase;
}

.brand-sub {
    color: #5741d9;
    font-size: 14px;
    letter-spacing: 0px;
}

form {
    width: 80%;
    max-width: 380px;
    margin: 40px auto;
    background: white;
    padding: 40px 20px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: -1px 2px 11px 3px rgb(0 0 0 / 16%);
}

.formTopbar h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-align: center;
}

.formTopbar p {
    color: #6B7280;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

/* --- INPUT GROUP --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 14px 85px 14px 16px;
    font-family: "Golos Text", sans-serif;
    border: 1px solid #d2d7d3;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #5741d9;
    box-shadow: 0 0 0 4px rgba(87, 65, 217, 0.08);
}

/* --- BOTTONI AZIONI --- */
.actions-wrapper {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-btn {
    background: #673ab7b8;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsante info solitario nell'email */
.input-wrapper > .info-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #6B7280;
    display: flex;
    align-items: center;
}

.toggle-password svg {
    width: 22px;
    height: 22px;
}

/* --- LAYER & OVERLAY --- */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.card-layer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 1000;
    width: 76%;
    max-width: 400px;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    font-size: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
}

.card-content {
    padding: 30px 25px 15px 25px;
}

.card-content h3 span {
    color: #5741d9;
}

.security-tips {
    text-align: left;
    display: inline-block;
    margin-top: 10px;
}

.card-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.card-image {
    width: 60%;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    background: radial-gradient(ellipse 52% 32% at center, #FFEB3B 0%, #ffffff 80%);
}
.submit-btn {
    background: #5741d9;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-family: "Golos Text", sans-serif;
    cursor: pointer;
    transition: background 0.3s;
}
.submit-btn:hover { background: #4532b5; }
/* Box Errore personalizzato */
.error-container {
    display: none;
    background-color: #FFF5F5;
    color: #E53E3E; /* Rosso Stoxy/Business */
    border-left: 4px solid #E53E3E;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

/* Animazione Loader nel bottone */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
p.terms-text {
    font-size: 12px;
    color: gray;
}
.stripe-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stripe-line {
    position: absolute;
    width: 200%;
    height: 2px; /* Linee sottili per un effetto elegante */
    left: -50%;
    transform: rotate(-15deg); /* Inclinazione diagonale */
    transform-origin: center;
    opacity: 0.3;
    filter: blur(1px); /* Leggera sfocatura per profondità */
}

/* Animazione di oscillazione */
@keyframes wave-float {
    0%, 100% { transform: rotate(-15deg) translateY(0px); }
    50% { transform: rotate(-13deg) translateY(-40px); }
}

@media (max-width: 768px) {
    .stripe-line {
        transform: rotate(-10deg);
    }
}