/* Pagine auth NutriSuite — stessa grafica del login Ippocrate Manager */
:root {
    --ip-cyan: #29ABE2;
    --ip-dark: #1B2080;
    --ip-mid: #1565B8;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }
[x-cloak] { display: none !important; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--ip-dark) 0%, var(--ip-mid) 50%, var(--ip-cyan) 100%);
}
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 171, 226, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(27, 32, 128, 0.4) 0%, transparent 70%);
    pointer-events: none;
}
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 44px 40px;
    box-shadow: 0 32px 64px rgba(27, 32, 128, 0.35);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.brand-section { text-align: center; margin-bottom: 32px; }
.brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ip-cyan), var(--ip-dark));
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(41, 171, 226, 0.4);
}
.brand-icon i { color: #fff; font-size: 1.6rem; }
.brand-section h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.brand-section p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 6px;
    font-weight: 500;
}
.alert-error, .alert-ok {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.alert-ok {
    background: rgba(41, 171, 226, 0.18);
    border: 1px solid rgba(41, 171, 226, 0.4);
    color: #a7f3d0;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.input-wrap { position: relative; }
.input-wrap i.icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    padding: 13px 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
    outline: none;
}
.input-wrap input::placeholder { color: rgba(255, 255, 255, 0.35); }
.input-wrap input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--ip-cyan);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.25);
}
.btn-toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}
.btn-toggle-pw:hover { color: rgba(255, 255, 255, 0.8); }
.forgot-row { text-align: right; margin: -6px 0 4px; }
.forgot-row a, .back-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.forgot-row a:hover, .back-link:hover { color: var(--ip-cyan); }
.btn-login {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--ip-cyan) 0%, var(--ip-dark) 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(41, 171, 226, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(41, 171, 226, 0.5); }
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 0;
}
.divider span { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.1); }
.divider p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    white-space: nowrap;
}
.card-footer, .page-footer {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}
.page-footer a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.page-footer a:hover { color: var(--ip-cyan); }
.hint { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); line-height: 1.5; margin-bottom: 16px; text-align: center; }
@media (max-width: 480px) { .login-card { padding: 30px 20px; } }
