/* ======================================================
   ODZYSKIWANIE HASŁA 2.0
   ====================================================== */

.forgotModernDoor.is-open{transform:translateX(100%)}


/* ======================================================
   GŁÓWNY UKŁAD
   ====================================================== */

.forgotModernLayout{
    max-width:1500px;
    margin:40px auto;

    display:flex;
    gap:40px;

    justify-content:center;
    align-items:stretch;
}


/* ======================================================
   LEWY BOX — FORMULARZ
   ====================================================== */

.forgotModernFormBox{
    width:680px;
    flex:none;

    background:#fff;

    border-radius:18px;

    padding:50px;

    box-sizing:border-box;

    box-shadow:
        0 0 45px rgba(0,0,0,.10),
        0 12px 35px rgba(0,0,0,.10);
}


/* ======================================================
   PRAWY BOX — DRZWI / KOMUNIKAT
   ====================================================== */

.forgotModernMascotBox{
    width:680px;
    flex:none;

    background:#fff;

    border:1px solid rgba(0,0,0,.05);
    border-radius:18px;

    padding:50px;

    box-sizing:border-box;

    box-shadow:
        0 0 45px rgba(0,0,0,.10),
        0 12px 35px rgba(0,0,0,.10);

    position:relative;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;
}


/* ======================================================
   GÓRNY PASEK
   ====================================================== */

.forgotModernFormBox .loginModernTopBar{
    display:flex;

    justify-content:space-between;
    align-items:center;

    width:100%;

    margin-bottom:20px;

    font-size:14px;
}

.forgotModernFormBox .loginModernTopBar a{
    text-decoration:none;
}


/* ======================================================
   LOGO
   ====================================================== */

.forgotModernFormBox .loginModernLogo{
    display:block;

    max-width:360px;
    width:100%;

    margin:0 auto 25px;
}


/* ======================================================
   NAGŁÓWEK
   ====================================================== */

.forgotModernFormBox h1{
    margin:0 0 10px;

    text-align:center;

    font-size:30px;
    line-height:1.2;
}


/* ======================================================
   TEKST POD NAGŁÓWKIEM
   ====================================================== */

.forgotModernFormBox .loginModernLead{
    margin:0 auto 80px;

    text-align:center;

    font-size:16px;
    line-height:1.5;
}


/* ======================================================
   KOMUNIKAT BŁĘDU
   ====================================================== */

.forgotModernFormBox .loginModernError{
    margin:0 auto 20px;

    padding:12px 15px;

    border:1px solid #d40000;

    background:#fff1f1;
    color:#b00000;

    text-align:center;

    font-weight:600;
}


/* ======================================================
   OBSZAR FORMULARZA
   ====================================================== */

.forgotModernFormBox .loginModernFormArea{
    width:100%;
    margin:0 auto;
}

.forgotModernFormBox .loginModernForm{
    width:100%;
    margin:0;
}


/* ======================================================
   POLE E-MAIL
   ====================================================== */

.forgotModernFormBox .loginModernField{
    width:100%;
    margin:0 0 28px;
}

.forgotModernFormBox .loginModernField label{
    display:block;

    width:100%;

    margin:0 0 7px;

    font-size:16px;
    font-weight:600;

    line-height:1.4;
}

.forgotModernFormBox .loginModernField input[type="email"],
.forgotModernFormBox .loginModernField input[type="text"]{
    display:block;

    width:100%;
    height:52px;

    box-sizing:border-box;

    padding:12px 15px;

    border:1px solid #d7d7d7;
    border-radius:8px;

    background:#fff;

    font-family:inherit;
    font-size:16px;
    color:#333;

    outline:none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.forgotModernFormBox .loginModernField input[type="email"]:focus,
.forgotModernFormBox .loginModernField input[type="text"]:focus{
    border-color:#1683df;

    box-shadow:
        0 0 0 3px rgba(22,131,223,.12);
}


/* ======================================================
   PRZYCISK
   ====================================================== */

.forgotModernSubmit{
    width:100%;
    margin:0;
}

.forgotModernSubmit button{
    display:flex;

    align-items:center;
    justify-content:center;

    width:100%;
    height:52px;

    box-sizing:border-box;

    padding:0 20px;

    border:0;
    border-radius:8px;

    background:#1683df;
    color:#fff;

    font-family:inherit;
    font-size:16px;
    font-weight:600;

    cursor:pointer;

    transition:
        background .2s ease,
        box-shadow .2s ease;
}

.forgotModernSubmit button:hover{
    background:#0d73c8;

    box-shadow:
        0 4px 12px rgba(0,0,0,.15);
}


/* ======================================================
   KOMUNIKAT SUKCESU — POD DRZWIAMI
   ====================================================== */

.forgotModernSuccess{
    position:relative;
    z-index:1;

    width:calc(100% - 40px);
    max-width:540px;

    box-sizing:border-box;

    padding:30px 35px;

    border:1px solid #1683df;
    border-radius:10px;

    background:#fff;

    text-align:center;

    box-shadow:
        0 4px 18px rgba(0,0,0,.15),
        0 0 12px rgba(22,131,223,.12);
}
.forgotModernSuccess h2{
    margin:0 0 20px;

    font-size:28px;
    line-height:1.3;
}

.forgotModernSuccess p{
    margin:0;

    font-size:17px;
    line-height:1.6;
}


/* ======================================================
   DRZWI
   ====================================================== */

.forgotModernDoor{
    position:absolute;

    top:0;
    right:0;
    bottom:0;
    left:0;

    z-index:10;

    background:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    transform:translateX(0);

    transition:
        transform .9s ease-in-out;
}


/* ======================================================
   MASKOTKA — PEŁNA WIDOCZNOŚĆ
   ====================================================== */

.forgotModernMascotBox{
    overflow:hidden;
    min-height:680px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.forgotModernMascotBox .forgotModernMascot,
.forgotModernMascotBox .loginModernMascot{
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:560px;
    object-fit:contain;
    margin:auto;
}

/* ======================================================
   TELEFONY
   ====================================================== */

@media (max-width:800px){

    .forgotModernLayout{
        flex-direction:column;

        margin:15px auto;

        padding:0 10px;
    }

    .forgotModernFormBox,
    .forgotModernMascotBox{
        width:100%;
    }

    .forgotModernFormBox{
        padding:30px;
    }

    .forgotModernMascotBox{
        min-height:300px;
    }

    .forgotModernFormBox .loginModernField{
        width:100%;
    }

    .forgotModernSubmit,
    .forgotModernSubmit button{
        width:100%;
    }

}

/* Laravel — płynne otwieranie drzwi po wysłaniu instrukcji */
.forgotModernDoor.is-open{
    transform:translateX(100%);
}

.forgotModernSuccess p{
    margin:0 0 16px;
}

.forgotModernSuccess p:last-child{
    margin-bottom:0;
}
