@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
   --primary: #6366f1;
   --secondary: #a855f7;
   --dark: #0f172a;
   --light-slate: #64748b;
   --bg: #f8fafc;
   --white: #ffffff;
   --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
   margin: 0; padding: 0;
   box-sizing: border-box;
   font-family: 'Plus Jakarta Sans', sans-serif;
   text-decoration: none;
   transition: all .3s ease;
}

html {
   font-size: 62.5%;
   overflow-x: hidden;
   scroll-behavior: smooth;
}

body {
   background: var(--bg);
   color: var(--dark);
}

/* --- Header Section --- */
.header {
   position: sticky; top: 0; z-index: 1000;
   background: rgba(255, 255, 255, 0.8);
   backdrop-filter: blur(15px);
   border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header .flex {
   max-width: 1200px; margin: 0 auto;
   display: flex; align-items: center; justify-content: space-between;
   padding: 1.5rem 2rem;
}

.logo {
   font-size: 2.5rem; font-weight: 800;
   background: linear-gradient(to right, var(--primary), var(--secondary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.header .icons { display: flex; gap: 1rem; }

.icon-link {
   display: flex; flex-direction: column; align-items: center; width: 6rem;
}

.icon-link i {
   height: 4rem; width: 4rem; line-height: 4rem; text-align: center;
   font-size: 1.8rem; background: #f1f5f9; color: var(--primary);
   border-radius: 1.2rem; margin-bottom: 0.5rem;
}

.icon-link span { font-size: 1rem; font-weight: 700; color: var(--light-slate); text-transform: uppercase; }

.icon-link:hover i { background: var(--primary); color: var(--white); transform: translateY(-3px); }

/* --- Dashboard Section --- */
.quick-select { max-width: 1200px; margin: 5rem auto; padding: 0 2rem; }

.heading {
   text-align: center; font-size: 3.5rem; font-weight: 800;
   margin-bottom: 4rem; color: var(--dark);
}

.box-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
   gap: 2.5rem;
}

.box {
   background: var(--white); padding: 4rem 3rem; border-radius: 3rem;
   text-align: center; box-shadow: var(--shadow);
   border: 1px solid transparent;
}

.box:hover {
   transform: translateY(-1rem);
   border-color: var(--primary);
}

.box i {
   height: 8rem; width: 8rem; line-height: 8rem; font-size: 3.5rem;
   background: #eef2ff; color: var(--primary);
   border-radius: 2rem; margin-bottom: 2rem;
}

.box span { display: block; font-size: 2.2rem; font-weight: 700; margin-bottom: 2.5rem; }

.inline-btn {
   display: inline-block; padding: 1.2rem 3rem;
   background: var(--dark); color: var(--white);
   font-size: 1.6rem; font-weight: 600; border-radius: 5rem;
}

.box:hover .inline-btn { background: var(--primary); }

/* --- Footer --- */
.footer {
   text-align: center; padding: 5rem 2rem; border-top: 1px solid rgba(0,0,0,0.05);
   background: var(--white); font-size: 1.6rem; color: var(--light-slate);
}

.footer span { color: var(--primary); font-weight: 700; }

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
   .header .flex { flex-direction: column; gap: 2rem; }
   .header .icons { width: 100%; justify-content: center; flex-wrap: wrap; }
   .heading { font-size: 2.8rem; }
}

/*---css for login---*/
.icons { display: flex; gap: 1rem; }

.icon-link {
    display: flex; flex-direction: column; align-items: center; width: 5.5rem;
}

.icon-link i {
    height: 3.8rem; width: 3.8rem; line-height: 3.8rem; text-align: center;
    font-size: 1.7rem; background: #f1f5f9; color: var(--primary);
    border-radius: 1rem; margin-bottom: 0.4rem;
}

.icon-link span { font-size: 0.9rem; font-weight: 700; color: var(--grey); text-transform: uppercase; }

/* --- Form Container --- */
.form-container {
    display: flex; align-items: center; justify-content: center;
    padding: 4rem 2rem; min-height: calc(100vh - 8rem);
}

.form-box {
    background: var(--white);
    width: 100%; max-width: 450px;
    padding: 4rem 3.5rem;
    border-radius: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-box h2 {
    font-size: 2.6rem; color: var(--dark);
    text-align: center; margin-bottom: 3rem; font-weight: 800;
}

/* --- Input Groups --- */
.input-group {
    position: relative; margin-bottom: 2rem;
}

.input-group i {
    position: absolute; left: 1.5rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem; color: var(--primary);
}

.input-group input {
    width: 100%; padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    background: #f1f5f9; border: 2px solid transparent;
    border-radius: 1.2rem; font-size: 1.5rem; color: var(--dark);
}

.input-group input:focus {
    background: var(--white); border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* --- Buttons --- */
.btn {
    width: 100%; padding: 1.5rem;
    background: var(--dark); color: white;
    font-size: 1.6rem; font-weight: 700;
    border: none; border-radius: 1.2rem;
    cursor: pointer; margin-top: 1rem;
}

.btn:hover {
    background: var(--primary); transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.forget-pass { text-align: right; margin: -1rem 0 2rem; }
.forget-pass a { font-size: 1.3rem; color: var(--grey); }
.forget-pass a:hover { color: var(--primary); }

.form-box p {
    text-align: center; margin-top: 2.5rem;
    font-size: 1.4rem; color: var(--grey);
}

.form-box p a { color: var(--primary); font-weight: 700; }

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .header .flex { flex-direction: column; gap: 1.5rem; }
    .icons { width: 100%; justify-content: center; overflow-x: auto; padding-bottom: 1rem; }
}

@media (max-width: 480px) {
    .form-box { padding: 3rem 2rem; border-radius: 2rem; }
    .form-box h2 { font-size: 2.2rem; }
}