/* ===== Login page — palette allineata alla landing CashCometa ===== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 55% at 18% 28%, rgba(0, 179, 134, 0.38), transparent 60%),
        radial-gradient(ellipse 55% 50% at 82% 78%, rgba(0, 179, 134, 0.22), transparent 65%),
        radial-gradient(ellipse 40% 35% at 50% 8%, rgba(232, 184, 79, 0.10), transparent 60%),
        linear-gradient(135deg, #06203a 0%, #0a2d5c 55%, #123a78 100%);
}

/* Grain/noise sottile sopra lo sfondo per togliere la sensazione di "piatto" */
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Orbi decorativi sfocati per dare profondità */
.login-page::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    top: -120px;
    right: -140px;
    background: radial-gradient(circle, rgba(0, 179, 134, 0.35) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.login-back {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    z-index: 2;
}

.login-back:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateX(-2px);
}

.login-back i {
    font-size: 1rem;
}

@media (max-width: 480px) {
    .login-back {
        top: 16px;
        left: 16px;
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    .login-back span { display: none; }
}

.login-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 22px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(232, 184, 79, 0.18);
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
}

.login-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.login-subtitle {
    text-align: center;
    color: #6b7a99;
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.login-error {
    background: rgba(214, 69, 69, 0.08);
    border: 1px solid rgba(214, 69, 69, 0.25);
    color: #a52929;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.login-field {
    margin-bottom: 1.1rem;
}

.login-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0a2d5c;
    margin-bottom: 0.35rem;
}

.login-field .k-input {
    width: 100%;
}

.login-field .k-input-solid:focus-within,
.login-field .k-input-solid.k-focus {
    border-color: #00b386;
    box-shadow: 0 0 0 3px rgba(0, 179, 134, 0.15);
}

.login-field .validation-message {
    font-size: 0.78rem;
    color: #d64545;
    margin-top: 0.2rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    font-size: 0.875rem;
    color: #1a2740;
    cursor: pointer;
    user-select: none;
}

.login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00b386;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Bottone primario Telerik: override con verde finanziario */
.login-btn.k-button.k-button-solid-primary {
    width: 100%;
    justify-content: center;
    background: #00b386;
    border-color: #00b386;
    color: #fff;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.login-btn.k-button.k-button-solid-primary:hover:not(:disabled) {
    background: #009971;
    border-color: #009971;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 179, 134, 0.35);
}

.login-btn.k-button.k-button-solid-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 179, 134, 0.25);
}

.login-btn.k-button.k-button-solid-primary:disabled,
.login-btn.k-button.k-button-solid-primary.k-disabled {
    background: #6b7a99;
    border-color: #6b7a99;
    color: rgba(255, 255, 255, 0.9);
}
