*{
  box-sizing:border-box;
}

body,html{
  margin:0;
  height:100%;
  font-family:'Segoe UI', Arial, sans-serif;
  /*background:linear-gradient(135deg,#43A047,#1B5E20);*/
    background:linear-gradient(135deg,#EF5350,#C62828);
}

/* pagina splash */
#app-splash{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#EF5350;
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
transition:opacity .35s ease;
}

.splash-center img{
width:110px;
height:110px;
}

.splash-loader{
margin-top:20px;
width:36px;
height:36px;
border:3px solid rgba(255,255,255,.35);
border-top:3px solid white;
border-radius:50%;
animation:spin .9s linear infinite;
}

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

/* layout principale */
.wrapper{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0 20px;
}

/* logo */
.cont{
  text-align:center;
  margin-bottom:30px;
}

.cont img{
  max-width:220px;
  height:auto;
}

/* box login */
#box{
  width:100%;
  max-width:420px;

  background:#ffffff;
  padding:40px 35px;

  border-radius:16px;

  box-shadow:
  0 20px 45px rgba(0,0,0,0.12),
  0 5px 15px rgba(0,0,0,0.06);
}

/* form */
#log{
  width:100%;
}

/* input */
#log input{
  width:100%;
  padding:14px 16px;
  margin-bottom:18px;

  border-radius:10px;
  border:1px solid #E0E0E0;

  background:#FAFAFA;
  color:#333;

  font-size:15px;

  transition:all .25s ease;
}

#log input::placeholder{
  color:#9E9E9E;
}

/* focus più moderno */
#log input:focus{
  outline:none;
  border-color:#43A047;

  background:#FFF;

  box-shadow:0 0 0 3px rgba(67,160,71,0.18);
}

/* bottone */
#login{
  width:100%;
  padding:14px;

  border-radius:10px;
  border:none;

  background:linear-gradient(135deg,#43A047,#2E7D32);
  color:#FFF;

  font-weight:600;
  font-size:15px;

  cursor:pointer;

  transition:all .25s ease;
}

#login:hover{
  transform:translateY(-2px);

  box-shadow:0 10px 22px rgba(0,0,0,0.2);
}

/* agenda */
.agenda{
  margin-top:25px;
  text-align:center;
  font-size:14px;
}

.agenda a{
  color:#A5D6A7;
  font-weight:500;
  text-decoration:none;

  transition:all .2s ease;
}

.agenda a:hover{
  text-decoration:underline;
  opacity:.9;
}

/* Messaggi */
#result {
  margin-top: 15px;
  font-size: 14px;
  color: #ffe082;
  text-align: center;
}

/* Link */
p {
  margin-top: 20px;
  font-size: 13px;
  text-align: center;
}

p a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

p a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 600px) {

  .wrapper {
    justify-content: flex-start;
    padding-top: 80px;
  }

  #box {
    padding: 30px 20px;
  }

}
/* MODALE RECUPERO PW */
 /* ================= MODALE GLASS ================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    display: none;
    width: 100%;
    max-width: 420px;
    padding: 35px 30px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    color: #fff;
    animation: modalFade 0.25s ease;
}

.modal.active {
    display: block;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal input {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

.modal input::placeholder {
    color: rgba(255,255,255,0.7);
}

.modal input:focus {
    outline: none;
    border: 1px solid #fff;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.modal-actions button[type="submit"] {
    background: #ffffff;
    color: #2E7D32;
}

.modal-actions button[type="submit"]:hover {
    transform: translateY(-2px);
}

.modal-actions .closeModal {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

#recMsg {
    margin-top: 15px;
    font-size: 13px;
}

#recMsg.error {
    color: #ff8a80;
}

#recMsg.success {
    color: #a5d6a7;
}
/* per reset-password */
/* Wrapper password con icona */
.pwd-wrapper {
    position: relative;
}

.pwd-wrapper input {
    padding-right: 40px;
}

.togglePwd {
    position: absolute;
    right: 12px;
    top: 14px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
}

.togglePwd:hover {
    opacity: 1;
}

#resetMsg {
    margin-top: 15px;
    font-size: 13px;
}

#resetMsg.error {
    color: #ff8a80;
}

#resetMsg.success {
    color: #a5d6a7;
}