/*
════════════════════════════════════════
  Project:    Frontend Login Web Page
  Developer:  Mirza Hadi
  Website:    hadi-mirza.com
  GitHub:     github.com/Hadibaig
════════════════════════════════════════
*/


*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:'Segoe UI',sans-serif;
background:#f5f7fb;
color:#333;
}

/* =========================
   LOGIN PAGE
========================= */

.login-body{
background:linear-gradient(135deg,#0d6efd,#4da3ff);
min-height:100vh;
overflow:hidden;
position:relative;
}

/* =========================
   PARTICLES
========================= */

#particles-js{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:-1;
}

/* =========================
   LOGIN LAYOUT
========================= */

.login-layout{
display:grid;
grid-template-columns:30% 40% 30%;
min-height:100vh;
align-items:center;
}

.login-center{
display:flex;
justify-content:center;
align-items:center;
padding:20px;
}

/* =========================
   LOGIN CARD
========================= */

.login-card{
width:100%;
max-width:480px;
background:#ffffff;
padding:40px;
border-radius:20px;
box-shadow:
0 15px 40px rgba(0,0,0,.12);
transition:.3s;
}

.login-card:hover{
transform:translateY(-3px);
}

/* =========================
   AVATAR
========================= */

.avatar-logo{
width:90px;
height:90px;
border-radius:50%;
object-fit:cover;
margin-bottom:15px;
border:4px solid #0d6efd;
}

/* =========================
   PASSWORD ICON
========================= */

.password-wrapper{
position:relative;
}

.toggle-password{
position:absolute;
top:50%;
right:15px;
transform:translateY(-50%);
cursor:pointer;
font-size:18px;
user-select:none;
}

/* =========================
   BUTTONS
========================= */

.btn-primary{
background:#0d6efd;
border:none;
height:50px;
font-weight:600;
}

.btn-primary:hover{
background:#0b5ed7;
}

/* =========================
   NAVBAR
========================= */

.custom-nav{
background:#0d6efd;
box-shadow:
0 2px 10px rgba(0,0,0,.1);
}

.custom-nav .nav-link{
color:#fff !important;
font-weight:500;
margin-left:10px;
}

.custom-nav .nav-link:hover{
opacity:.8;
}

/* =========================
   HERO
========================= */

.hero-section{
padding:120px 20px;
background:
linear-gradient(
135deg,
#0d6efd,
#4da3ff
);

color:white;
}

.hero-section h1{
font-weight:700;
}

.hero-section p{
font-size:1.1rem;
}

/* =========================
   FEATURE BOXES
========================= */

.feature-box{
background:#fff;
padding:30px;
border-radius:15px;
text-align:center;

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

transition:.3s;
height:100%;
}

.feature-box:hover{
transform:translateY(-5px);
}

.feature-box h3{
margin-bottom:15px;
font-size:1.4rem;
}

/* =========================
   CREDIT SECTION
========================= */

.credit-card{
background:#fff;
padding:40px;
border-radius:20px;

box-shadow:
0 5px 20px rgba(0,0,0,.08);
}

.credit-card h2{
margin-bottom:20px;
}

.credit-card ul{
padding-left:20px;
}

.credit-card li{
margin-bottom:8px;
}

.credit-card a{
text-decoration:none;
color:#0d6efd;
}

.credit-card a:hover{
text-decoration:underline;
}

/* =========================
   DARK MODE
========================= */

.dark-mode{
background:#121212;
color:#f1f1f1;
}

.dark-mode .navbar{
background:#111 !important;
}

.dark-mode .hero-section{
background:
linear-gradient(
135deg,
#111,
#1c1c1c
);
}

.dark-mode .feature-box,
.dark-mode .credit-card,
.dark-mode .login-card{
background:#1f1f1f;
color:#fff;
}

.dark-mode .text-muted{
color:#cfcfcf !important;
}

.dark-mode a{
color:#4da3ff;
}

/* =========================
   FORMS
========================= */

.form-control{
height:50px;
border-radius:10px;
}

.form-control:focus{
box-shadow:none;
border-color:#0d6efd;
}

/* =========================
   MOBILE
========================= */

@media(max-width:992px){

.login-layout{
grid-template-columns:1fr;
padding:20px;
}

.login-card{
max-width:100%;
}

.hero-section{
padding:80px 20px;
}

.hero-section h1{
font-size:2rem;
}

}

@media(max-width:576px){

.login-card{
padding:25px;
}

.credit-card{
padding:25px;
}

.hero-section{
padding:60px 15px;
}

.hero-section h1{
font-size:1.8rem;
}

}
.footer-section{
background:#0d6efd;
color:#fff;
padding:30px 20px;
margin-top:50px;
}
