/* ==========================================================
   POCKET BILLIARDS MANAGER
   ACCESSO AREA ISTRUTTORE V7
========================================================== */

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
}

body{
    margin:0;
    min-height:100%;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

button,
input{
    font:inherit;
}

.instructor-auth-page{
    display:grid;
    min-height:100vh;
    min-height:100svh;
    padding:24px;
    place-items:center;
    overflow-y:auto;
    color:#172033;
    background:
        radial-gradient(
            circle at 8% 5%,
            rgba(var(--theme-rgb-secondary,90,23,47),.16),
            transparent 34%
        ),
        radial-gradient(
            circle at 92% 96%,
            rgba(var(--theme-rgb-secondary,90,23,47),.10),
            transparent 30%
        ),
        #f4f7fb;
}

.instructor-auth-card{
    width:min(650px,100%);
    padding:44px;
    background:#fff;
    border:1px solid #d9e3ef;
    border-radius:26px;
    box-shadow:
        0 30px 85px rgba(15,23,42,.13);
}

.instructor-auth-header{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:18px;
}

.instructor-auth-logo{
    display:grid;
    width:90px;
    height:90px;
    flex:0 0 90px;
    place-items:center;
    overflow:hidden;
    background:rgba(var(--theme-rgb-secondary,90,23,47),.08);
    border:1px solid rgba(var(--theme-rgb-primary),.28);
    border-radius:21px;
    text-decoration:none;
}

.instructor-auth-logo img{
    display:block;
    width:100%;
    height:100%;
    padding:6px;
    object-fit:contain;
}

.instructor-auth-label{
    color:rgb(var(--theme-rgb-secondary,90,23,47));
    font-size:.78rem;
    font-weight:900;
    letter-spacing:.12em;
}

.instructor-auth-card h1{
    margin:7px 0 0;
    color:#142033;
    font-size:clamp(1.85rem,4vw,2.45rem);
    line-height:1.12;
    letter-spacing:-.025em;
}

.instructor-auth-intro{
    margin:0 0 27px;
    color:#667085;
    font-size:1rem;
    line-height:1.6;
}

.instructor-auth-error{
    margin-bottom:20px;
    padding:13px 15px;
    color:#b42318;
    background:#fff0ef;
    border:1px solid #f7b4ae;
    border-radius:12px;
    font-weight:650;
}

.instructor-auth-form{
    display:grid;
    gap:19px;
}

.instructor-auth-field{
    display:grid;
    gap:8px;
}

.instructor-auth-field label{
    color:#172033;
    font-size:.9rem;
    font-weight:850;
}

.instructor-auth-field input{
    width:100%;
    min-height:56px;
    padding:0 16px;
    color:#172033;
    background:#fff;
    border:1px solid #cbd8e7;
    border-radius:13px;
    outline:0;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.instructor-auth-field input:focus{
    border-color:rgb(var(--theme-rgb-secondary,90,23,47));
    box-shadow:0 0 0 4px rgba(var(--theme-rgb-secondary,90,23,47),.12);
}

.instructor-password-field{
    position:relative;
}

.instructor-password-field input{
    padding-right:125px;
}

.instructor-password-toggle{
    position:absolute;
    top:50%;
    right:8px;
    display:inline-flex;
    min-height:40px;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:0 11px;
    color:#365271;
    background:rgba(var(--theme-rgb-secondary,90,23,47),.08);
    border:1px solid #d5e1ef;
    border-radius:10px;
    transform:translateY(-50%);
    cursor:pointer;
    font-size:.78rem;
    font-weight:850;
    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease;
}

.instructor-password-toggle:hover,
.instructor-password-toggle:focus-visible{
    color:rgb(var(--theme-rgb-secondary,90,23,47));
    background:rgba(var(--theme-rgb-secondary,90,23,47),.08);
    border-color:rgba(var(--theme-rgb-secondary,90,23,47),.32);
    outline:0;
}

.password-icon{
    width:19px;
    height:19px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.password-icon--hide{
    display:none;
}

.instructor-password-toggle.is-visible
.password-icon--show{
    display:none;
}

.instructor-password-toggle.is-visible
.password-icon--hide{
    display:block;
}

.instructor-auth-submit{
    min-height:55px;
    margin-top:2px;
    color:#fff;
    background:rgb(var(--theme-rgb-secondary,90,23,47));
    border:1px solid rgb(var(--theme-rgb-secondary,90,23,47));
    border-radius:13px;
    box-shadow:0 12px 24px rgba(var(--theme-rgb-secondary,90,23,47),.20);
    font-size:1rem;
    font-weight:900;
    cursor:pointer;
    transition:
        transform .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.instructor-auth-submit:hover{
    background:#3f1021;
    box-shadow:0 15px 30px rgba(var(--theme-rgb-secondary,90,23,47),.26);
    transform:translateY(-1px);
}

.instructor-auth-submit:active{
    transform:translateY(0);
}

.instructor-auth-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-top:24px;
    padding-top:20px;
    color:#667085;
    border-top:1px solid #e5ebf2;
    font-size:.82rem;
}

.instructor-auth-footer a{
    color:rgb(var(--theme-rgb-secondary,90,23,47));
    font-weight:850;
    text-decoration:none;
}

.instructor-auth-footer a:hover{
    text-decoration:underline;
}

/* Mantiene visibile l'intera scheda sui monitor con altezza ridotta. */
@media(max-height:820px) and (min-width:641px){
    .instructor-auth-page{
        place-items:start center;
        padding-block:22px;
    }

    .instructor-auth-card{
        padding:28px 36px;
        border-radius:22px;
    }

    .instructor-auth-header{
        gap:16px;
        margin-bottom:12px;
    }

    .instructor-auth-logo{
        width:72px;
        height:72px;
        flex-basis:72px;
        border-radius:17px;
    }

    .instructor-auth-card h1{
        font-size:clamp(1.75rem,3vw,2.15rem);
    }

    .instructor-auth-intro{
        margin-bottom:18px;
        line-height:1.45;
    }

    .instructor-auth-form{
        gap:14px;
    }

    .instructor-auth-field{
        gap:6px;
    }

    .instructor-auth-field input{
        min-height:50px;
    }

    .instructor-auth-submit{
        min-height:50px;
    }

    .instructor-auth-footer{
        margin-top:18px;
        padding-top:15px;
    }
}

@media(max-width:640px){
    .instructor-auth-page{
        place-items:start center;
        padding:14px;
    }

    .instructor-auth-card{
        padding:27px 20px;
        border-radius:20px;
    }

    .instructor-auth-header{
        align-items:flex-start;
        flex-direction:column;
        gap:14px;
    }

    .instructor-auth-logo{
        width:74px;
        height:74px;
        flex-basis:74px;
        border-radius:17px;
    }

    .instructor-auth-intro{
        font-size:.93rem;
    }

    .instructor-auth-footer{
        align-items:flex-start;
        flex-direction:column;
        margin-top:18px;
        padding-top:16px;
    }
}

@media(max-width:390px){
    .instructor-password-field input{
        padding-right:55px;
    }

    .instructor-password-toggle{
        width:42px;
        padding:0;
    }

    .instructor-password-toggle span{
        display:none;
    }
}

@media(prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        scroll-behavior:auto!important;
        transition:none!important;
    }
}

/* ==========================================================
   CAMBIO PASSWORD - PRIMO ACCESSO V9
========================================================== */

.password-rules{
    margin:0 0 22px;
    padding:14px 16px;
    color:#344054;
    background:#f8fafc;
    border:1px solid #dce5ef;
    border-radius:13px;
    font-size:.86rem;
    line-height:1.5;
}

.password-rules strong{
    display:block;
    margin-bottom:6px;
    color:#172033;
}

.password-rules ul{
    margin:0;
    padding-left:19px;
}

.password-rules li + li{
    margin-top:2px;
}
