﻿body {
}


body, html {
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body.card-mode main{
    max-width:1023px;
}

#logo {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    height: 30px;
    margin-bottom: 40px;
}

body.card-mode #logo {
    margin-top: 20px;
    margin-bottom: 20px;
}
/* IL TRUCCO DELLO SFONDO IMMOBILE:
           Un livello fisso dietro a tutto il contenuto (z-index: -1) */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-blend) 100%);
    z-index: -1;
    pointer-events: none; /* Evita che intercetti i click del mouse */
}
#card-form{
    max-width:360px;
}

/* Card del Login con effetto Glassmorphism */
.login-card {
    background: var(--white-trans);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Supporto Safari */
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

body.login-mode .login-card{
    padding:50px 20px;
}
/* Icone dentro l'input group */
.input-group-text {
    background-color: transparent;
    border-right: none;
    color: var(--green-dark);
}

.form-control {
    border-left: none;
}

    .form-control:focus {
        border-color: var(--green-dark);
        box-shadow: none;
    }

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: var(--green-dark);
}

/* Bottone personalizzato */
.btn-custom {
    background-color: var(--green-dark);
    color: var(--white-text);
    transition: all 0.3s ease;
}

    .btn-custom:hover {
        background-color: var(--green-dark);
        color: var(--white-trans);
        transform: translateY(-2px);
    }

.card-mock {
    min-width: 320px;
    max-width: 400px;
    min-height: 270px;
    border-radius: 15px;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 20px;
    margin: auto;
    background-size: contain;
}

.border.shadow {
    box-shadow: 0.1rem .1rem 0.4rem rgba(0, 0, 0, .45) !important;
    border-color: #777 !important;
}

.card-number {
    letter-spacing: 2px;
    font-size: 1.2rem;
}
/* Configurazione layout Desktop vs Mobile */
@media (min-width: 992px) {
    body.login-mode {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    body.card-mode {
       margin-bottom:30px;
       margin-top:30px;
    }
}

@media (max-width: 991.98px) {
   
/*
   body.login-mode .main-wrapper {
        padding-top: 140px;
        padding-bottom: 40px;
    }
   */

  body.card-mode  .main-wrapper {
        padding-top: 20px;
        padding-bottom: 40px;
    }
}