/*=========================================
            Fonts
=========================================*/

@font-face{

font-family:"IranNastaliq";

src:url("../fonts/IranNastaliq.ttf");

}

@font-face{

font-family:"AdobeArabicBold";

src:url("../fonts/AdobeArabic-Bold.otf");

}


/*=========================================
            Reset
=========================================*/

*{

margin:0;

padding:0;

box-sizing:border-box;

}

body{

direction:rtl;

font-family:"AdobeArabicBold",Tahoma,sans-serif;

background:linear-gradient(135deg,#EDF5FF,#FFFFFF);

min-height:100vh;

display:flex;

justify-content:center;

align-items:center;

padding:20px;

overflow-x:hidden;

}


/*=========================================
        Login Box
=========================================*/

.loginBox{

width:100%;

max-width:470px;

background:#FFFFFF;

border-radius:22px;

padding:35px;

border:1px solid #D9E8FF;

box-shadow:0 15px 40px rgba(0,0,0,.15);

animation:showBox .8s ease;

}

@keyframes showBox{

from{

opacity:0;

transform:translateY(35px);

}

to{

opacity:1;

transform:translateY(0);

}

}
/*=========================================
              Logo
=========================================*/

.logo{

width:120px;

height:120px;

margin:0 auto 15px;

animation:logoBlink 2.5s infinite;

}

.logo img{

width:100%;

height:100%;

object-fit:contain;

display:block;

}

@keyframes logoBlink{

0%{

opacity:1;

transform:scale(1);

}

50%{

opacity:.65;

transform:scale(1.04);

}

100%{

opacity:1;

transform:scale(1);

}

}


/*=========================================
             Titles
=========================================*/

.loginBox h1{

font-family:"IranNastaliq";

font-size:40px;

text-align:center;

color:#0D3B66;

margin-bottom:8px;

}

.loginBox h2{

font-family:"AdobeArabicBold";

font-size:22px;

text-align:center;

color:#1976D2;

margin-bottom:30px;

line-height:1.8;

}
/*=========================================
            Input Boxes
=========================================*/

.inputBox{

margin-bottom:22px;

}

.inputBox label{

display:block;

margin-bottom:8px;

font-size:20px;

font-family:"AdobeArabicBold";

color:#0D3B66;

}

.inputBox input{

width:100%;

height:55px;

border:2px solid #CFE3FF;

border-radius:12px;

padding:0 15px;

font-size:18px;

font-family:"AdobeArabicBold";

background:#F9FCFF;

outline:none;

transition:.3s;

}

.inputBox input:focus{

border-color:#1976D2;

background:#FFFFFF;

box-shadow:0 0 12px rgba(25,118,210,.20);

}


/*=========================================
            Login Button
=========================================*/

.buttons{

margin-top:30px;

}

.buttons button{

width:100%;

height:58px;

border:none;

border-radius:14px;

background:linear-gradient(90deg,#0D47A1,#42A5F5);

color:#FFF;

font-size:22px;

font-family:"AdobeArabicBold";

cursor:pointer;

transition:.3s;

}

.buttons button:hover{

transform:translateY(-2px);

box-shadow:0 10px 22px rgba(13,71,161,.35);

}
/*=========================================
            Error Message
=========================================*/

.errorBox{

margin-top:20px;

padding:14px;

background:#FFEAEA;

border:1px solid #FFB5B5;

border-radius:10px;

color:#C62828;

font-size:19px;

font-family:"AdobeArabicBold";

text-align:center;

animation:showError .4s ease;

}

@keyframes showError{

from{

opacity:0;

transform:translateY(-10px);

}

to{

opacity:1;

transform:translateY(0);

}

}


/*=========================================
              Footer
=========================================*/

.footer{

margin-top:28px;

text-align:center;

font-size:17px;

font-family:"AdobeArabicBold";

color:#555;

line-height:1.8;

}


/*=========================================
          Responsive
=========================================*/

@media(max-width:600px){

.loginBox{

padding:25px;

border-radius:18px;

}

.logo{

width:95px;

height:95px;

}

.loginBox h1{

font-size:34px;

}

.loginBox h2{

font-size:19px;

}

.inputBox label{

font-size:18px;

}

.inputBox input{

height:50px;

font-size:17px;

}

.buttons button{

height:54px;

font-size:20px;

}

.footer{

font-size:15px;

}

}
/*=========================================
            Final Effects
=========================================*/

::selection{

background:#1565C0;

color:#FFF;

}

input::placeholder{

color:#9E9E9E;

opacity:1;

}

button{

outline:none;

}

button:active{

transform:scale(.98);

}

input{

transition:all .30s ease;

}

.loginBox{

transition:all .40s ease;

}

.loginBox:hover{

box-shadow:0 20px 50px rgba(0,0,0,.18);

}

.logo img{

user-select:none;

-webkit-user-drag:none;

pointer-events:none;

}

html{

scroll-behavior:smooth;

}

/* Scrollbar */

::-webkit-scrollbar{

width:8px;

}

::-webkit-scrollbar-thumb{

background:#1565C0;

border-radius:20px;

}

::-webkit-scrollbar-track{

background:#EAF4FF;

}
