.authPage{
    width:100%;
    min-height:calc(100vh - 80px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:140px 30px 80px;
    background:#fafafa;
}

.authBox{
    width:100%;
    max-width:500px;
    animation:authEnter .6s ease both;
}

.authBox.text.left {
    text-align: left;
}

.authBox.text.right {
    text-align: right;
}

.authHeading{
    text-align:center;
    margin-bottom:42px;
}

.authHeading>span{
    display:block;
    margin-bottom:10px;
    font-size:12px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#888;
}

.authHeading h1{
    margin:0 0 12px;
    font-size:34px;
    line-height:1.2;
    font-weight:500;
    color:#111;
}

.authHeading p{
    max-width:420px;
    margin:0 auto;
    font-size:14px;
    line-height:1.7;
    color:#777;
}

.authForm{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.authGroup{
    display:flex;
    flex-direction:column;
    gap:9px;
}

.authGroup label{
    font-size:13px;
    font-weight:500;
    color:#222;
}

.authLabelRow{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.authLabelRow.reversed {
    flex-direction: row-reverse;
}

.authLabelRow a{
    font-size:12px;
    color:#777;
    text-decoration:none;
    transition:.25s;
}

.authLabelRow a:hover{
    color:#111;
}

.authGroup>input,
.passwordInput input{
    width:100%;
    height:58px;
    padding:0 18px;
    border:1px solid #ddd;
    border-radius:12px;
    outline:none;
    background:#fff;
    color:#111;
    font-size:14px;
    transition:border-color .25s,box-shadow .25s,transform .25s;
}

.authGroup>input:hover,
.passwordInput input:hover{
    border-color:#bbb;
}

.authGroup>input:focus,
.passwordInput input:focus{
    border-color:#222;
    box-shadow:0 0 0 3px rgba(0,0,0,.05);
}

.authGroup input::placeholder{
    color:#aaa;
}

.passwordInput{
    position:relative;
}

.passwordInput input{
    padding-right:55px;
}

.togglePassword{
    position:absolute;
    top:50%;
    right:18px;
    transform:translateY(-50%);
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    background:none;
    color:#888;
    cursor:pointer;
    transition:.25s;
}

.togglePassword:hover{
    color:#111;
}

.rememberMe{
    width:max-content;
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    user-select:none;
}

.rememberMe input{
    display:none;
}

.rememberSwitch{
    width:38px;
    height:22px;
    position:relative;
    flex-shrink:0;
    border:1px solid #d5d5d5;
    border-radius:50px;
    background:#e8e8e8;
    transition:.25s;
}

.rememberSwitch::after{
    content:'';
    width:16px;
    height:16px;
    position:absolute;
    top:2px;
    left:2px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 4px rgba(0,0,0,.15);
    transition:.25s;
}

.rememberMe input:checked+.rememberSwitch{
    border-color:#111;
    background:#111;
}

.rememberMe input:checked+.rememberSwitch::after{
    transform:translateX(16px);
}

.rememberText{
    font-size:13px;
    color:#666;
    transition:.25s;
}

.rememberMe:hover .rememberText{
    color:#111;
}

.authSubmit{
    width:100%;
    height:62px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    border:1px solid #111;
    border-radius:12px;
    background:#111;
    color:#fff;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:.3s;
}

.authSubmit i{
    font-size:12px;
    transition:transform .3s;
}

.authSubmit:hover{
    background:#292929;
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.authSubmit:hover i{
    transform:translateX(4px);
}

.authSubmit:active{
    transform:translateY(0);
}

.formAlert{
    width:100%;
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    margin-bottom:20px;
    border:1px solid;
    border-radius:12px;
}

.formAlert.reversed {
    flex-direction: row-reverse;
    text-align: right;
}

.formAlert_icon{
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    border-radius:50%;
    font-size:13px;
    font-weight:700;
}

.formAlert_content{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.formAlert_content span{
    font-size:13px;
    line-height:1.5;
    opacity:.8;
}

.formAlert.success{
    background:#f0fdf4;
    border-color:#bbf7d0;
    color:#166534;
}

.formAlert.success .formAlert_icon{
    background:#22c55e;
    color:#fff;
}

.formAlert.error{
    background:#fef2f2;
    border-color:#fecaca;
    color:#991b1b;
}

.formAlert.error .formAlert_icon{
    background:#ef4444;
    color:#fff;
}

.formAlert.warning{
    background:#fffbeb;
    border-color:#fde68a;
    color:#92400e;
}

.formAlert.warning .formAlert_icon{
    background:#f59e0b;
    color:#fff;
}

.formAlert.info{
    background:#eff6ff;
    border-color:#bfdbfe;
    color:#1e40af;
}

.formAlert.info .formAlert_icon{
    background:#3b82f6;
    color:#fff;
}

.authFooter{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-top:30px;
    padding-top:28px;
    border-top:1px solid #e8e8e8;
    font-size:13px;
    color:#888;
}

.authFooter.reversed {
    flex-direction: row-reverse;
}

.authFooter a{
    color:#111;
    font-weight:500;
    text-decoration:none;
    position:relative;
}

.authFooter a i{
    margin:0 5px;
}

.authFooter a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-2px;
    width:0;
    height:1px;
    background:#111;
    transition:.25s;
}

.authFooter a:hover::after{
    width:100%;
}

.authTerms{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:12px;
    line-height:1.6;
    color:#666;
    cursor:pointer;
    user-select:none;
}

.authTerms.reversed {
    flex-direction: row-reverse;
}

.authTerms input{
    display:none;
}

.authTermsCheck{
    width:18px;
    height:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    margin-top:1px;
    border:1px solid #ccc;
    border-radius:5px;
    background:#fff;
    transition:.25s;
}

.authTermsCheck i{
    font-size:9px;
    color:#fff;
    opacity:0;
    transform:scale(.5);
    transition:.2s;
}

.authTerms input:checked+.authTermsCheck{
    border-color:#111;
    background:#111;
}

.authTerms input:checked+.authTermsCheck i{
    opacity:1;
    transform:scale(1);
}

.authTerms a{
    color:#111;
    font-weight:500;
    text-decoration:underline;
    text-underline-offset:2px;
}

@keyframes authEnter{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:600px){
    .authPage{
        align-items:flex-start;
        padding:120px 22px 60px;
    }

    .authHeading{
        margin-bottom:34px;
    }

    .authHeading h1{
        font-size:29px;
    }

    .authGroup>input,
    .passwordInput input{
        height:56px;
    }

    .authSubmit{
        height:58px;
    }
}