@font-face {
    font-family: IranSans;
    src: url(../fonts/IRANSans-web.woff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: IranSans;
}

body {

    background: #0d110d;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    overflow: hidden;

    color: white;

}

/* ========================= */
/* BACKGROUND */
/* ========================= */

.background {

    position: fixed;

    inset: 0;

    background:
        radial-gradient(circle at 20% 20%, #10B98122, transparent 300px),
        radial-gradient(circle at 80% 70%, #10B98122, transparent 350px),
        #0d110d;

    animation: moveBackground 10s linear infinite alternate;

    z-index: -2;

}

@keyframes moveBackground {

    from {

        transform: scale(1);

    }

    to {

        transform: scale(1.15);

    }

}

/* ========================= */

.container {

    width: 950px;
    max-width: 95%;

    min-height: 620px;

    display: flex;

    border-radius: 28px;

    overflow: hidden;

    background: rgba(23,31,23,.85);

    border: 1px solid rgba(16,185,129,.3);

    box-shadow:
    0 0 40px rgba(16,185,129,.15);

    backdrop-filter: blur(25px);

}

/* ========================= */
/* LEFT */
/* ========================= */

.logo-box {

    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 40px;

    background:
    linear-gradient(
    180deg,
    #10251d,
    #0d110d
    );

}

.logo-box img{

    width:120px;

    margin-bottom:25px;

}

.logo-box h1{

    color:#10B981;

    font-size:42px;

    text-shadow:0 0 18px #10B981;

}

.logo-box p{

    margin-top:15px;

    color:#9CA3AF;

}

/* ========================= */
/* RIGHT */
/* ========================= */

.form-box{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

    position:relative;

    overflow:hidden;

}

/* ========================= */

.form{

    width:80%;

    position:absolute;

    opacity:0;

    transform:translateX(60px);

    pointer-events:none;

    transition:.45s;

}

.form.active{

    opacity:1;

    transform:translateX(0);

    pointer-events:auto;

}

.form h2{

    text-align:center;

    margin-bottom:35px;

    color:#10B981;

}

/* ========================= */

.input-group{

    position:relative;

    margin-bottom:28px;

}

.input-group input{

    width:100%;

    padding:16px;

    border-radius:14px;

    border:1px solid #10B98155;

    background:#111916;

    color:white;

    outline:none;

    font-size:15px;

    transition:.3s;

}

.input-group input:focus{

    border-color:#10B981;

    box-shadow:0 0 15px rgba(16,185,129,.35);

}

.input-group label{

    position:absolute;

    right:16px;

    top:16px;

    color:#9CA3AF;

    pointer-events:none;

    transition:.25s;

    background:#111916;

    padding:0 6px;

}

.input-group input:focus+label,
.input-group input:valid+label{

    top:-10px;

    font-size:12px;

    color:#10B981;

}

/* ========================= */

.show-password{

    position:absolute;

    left:15px;

    top:50%;

    transform:translateY(-50%);

    background:none;

    border:none;

    color:#10B981;

    cursor:pointer;

    font-size:18px;

}

/* ========================= */

.submit-btn{

    width:100%;

    padding:15px;

    border:none;

    border-radius:15px;

    cursor:pointer;

    font-size:16px;

    font-weight:bold;

    background:linear-gradient(135deg,#10B981,#059669);

    color:white;

    transition:.3s;

}

.submit-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 0 18px rgba(16,185,129,.45);

}

/* ========================= */

.switch{

    margin-top:25px;

    text-align:center;

    color:#9CA3AF;

}

.switch span{

    color:#10B981;

    cursor:pointer;

    font-weight:bold;

}

.switch span:hover{

    text-decoration:underline;

}

/* ========================= */

#toast{

    position:fixed;

    bottom:25px;

    right:25px;

    background:#171f17;

    color:white;

    border:1px solid #10B981;

    padding:15px 22px;

    border-radius:14px;

    opacity:0;

    transform:translateY(30px);

    transition:.35s;

    pointer-events:none;

}

#toast.show{

    opacity:1;

    transform:translateY(0);

}

/* ========================= */
/* MOBILE */
/* ========================= */

@media(max-width:850px){

.container{

    flex-direction:column;

    min-height:auto;

}

.logo-box{

    padding:35px;

}

.logo-box img{

    width:80px;

}

.logo-box h1{

    font-size:32px;

}

.form-box{

    padding:40px 0;

}

.form{

    position:relative;

    width:90%;

    opacity:1;

    transform:none;

    display:none;

}

.form.active{

    display:block;

}

}