/* =========================================================
   AXIO CRM / OneAXIO — Stili pagina Login
   File: Login.css
   Percorso consigliato: ~/css/Login.css
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #20489F;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Cambiato: allinea card e footer in verticale */
    align-items: center; /* Cambiato: centra in orizzontale */
    justify-content: center;
    padding: 2rem 2rem 4rem; /* Aggiunto: più spazio sotto per i telefoni */
    position: relative;
}

.bg-stars {  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden }
.bg-stars span { position: absolute; background: #fff; border-radius: 50%; opacity: .5; }

.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 880px;
    width: 100%;
    z-index: 1;
    position: relative;
}

.astro-side {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.astro-side img {
    width: 100%;
    max-width: 340px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
}

.login-card {
    flex: 0 0 420px;
    background: #E9EBEF;
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.logo-wrap img {
    height: 78px;
    width: auto;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    text-align: center;
    margin-bottom: 4px;
}
.login-subtitle {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-bottom: 1.75rem;
}

.field-block { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.field-label { font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: .05em; }

.input-wrap { position: relative; }
.input-wrap i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 17px; color: #999;
}
.input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    outline: none;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s;
}
.input-wrap input:focus { border-color: #20489F; }
.input-wrap .toggle-pwd {
    left: auto; right: 12px; cursor: pointer; pointer-events: auto;
}

.row-between {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; font-size: 12px;
}
.remember { display: flex; align-items: center; gap: 6px; color: #666; }
.remember input { width: 14px; height: 14px; accent-color: #20489F; cursor: pointer; }
.forgot { color: #20489F; font-weight: 600; text-decoration: none; cursor: pointer; }
.forgot:hover { text-decoration: underline; }

.btn-login {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: #20489F;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: background .15s;
}
.btn-login:hover { background: #85B7EB; color: #fff; }
.btn-login i { font-size: 17px; }

.divider {
    display: flex; align-items: center; gap: 10px;
    margin: 1.5rem 0;
    font-size: 11px; color: #aaa;
    text-transform: uppercase; letter-spacing: .05em;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: #d5d7db;
}

.footer-text {
    text-align: center;
    font-size: 12px;
    color: #999;
}
.footer-text a { color: #20489F; font-weight: 600; text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .login-wrap { flex-direction: column; justify-content: center; gap: 1.5rem; }
    .astro-side { flex: 0 0 auto; max-width: 220px; margin-right: 0; }
    .login-card { flex: 0 0 auto; width: 100%; max-width: 420px; }
}

.page-footer {
    position: relative; /* Cambiato da absolute a relative */
    margin-top: auto; /* Spinge il footer in basso se c'è spazio avanzato */
    padding-top: 2rem; /* Evita che tocchi la card sui display piccoli */
    width: 100%; /* Occupa tutta la larghezza per centrare il testo */
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,.55);
    z-index: 1;
    line-height: 1.6;
}

.page-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }
