body{
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;   
    min-height: 100vh;
    margin: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.2), transparent 55%),
        radial-gradient(circle at 85% 75%, rgba(88, 60, 180, 0.25), transparent 50%),
        linear-gradient(135deg, rgb(14, 9, 9));
    overflow: hidden;
}

.slide-wrapper *{ /* slide toggel */
    margin: 0;
    padding: 0;
}

.slide{ /* slide toggel */
    height: 100%;
    width: 180px;
    box-sizing: border-box;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.5s ease;
    transform: translateX(-180px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    background-color: rgba(20, 24, 33, 0.9);
}

/* Scoped to .slide-wrapper so these don't leak onto the login form's own h2/p/env text */
.slide-wrapper h1{  /* slide toggel */
    color: azure;
    font-weight: 800;
    text-align: right;
    padding: 10px 0;
    padding-right: 30px;
    pointer-events: none;
    font-family: "Comic Sans MS", cursive, sans-serif;
}

.slide-wrapper p{   /* slide toggel */
    margin-top: 30px;
    color: rgb(209, 232, 252);
}

.slide-wrapper ul li { /* slide toggel */
    list-style: none;
    font-family: "Comic Sans MS", cursive, sans-serif;
}

.slide-wrapper ul li a{ /* slide toggel */
    color: #d8dfe1;
    font-weight: 500;
    padding: 10px;
    border: none;
    border-radius: 10px;
    display: block;
    text-transform: capitalize;
    text-decoration: none;
    transition: 0.2s ease-out;
}

.slide-wrapper ul li a i{ /* slide toggel */
    width: 40px;
    text-align: center;
}

.slide-wrapper ul li a:hover{ /* slide toggel */
    color:rgb(102, 170, 229);
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.slide-wrapper input[type="checkbox"]{
    display: none;
    visibility: hidden;
    appearance: none;
    -webkit-appearance: none;
}

.toggle{  /* slide toggel */
    position: fixed;
    height: 30px;
    width: 30px;
    top: 20px;
    left: 15px;
    z-index: 999;
    cursor: pointer;
    backdrop-filter: blur(15px);
    background-color: rgba(20, 24, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.toggle .common{  /* slide toggel */
    position: absolute;
    height: 2px;
    width: 20px;
    background-color: azure;
    border-radius: 50px;
    transition: 0.3s ease;
}

.toggle .top_line{  /* slide toggel */
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle .middle_line{  /* slide toggel */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle .bottom_line{  /* slide toggel */
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input:checked ~ .toggle .top_line{  /* slide toggel */
    left: 2px;
    top: 14px;
    width: 25px;
    transform: rotate(45deg);
}

input:checked ~ .toggle .middle_line{  /* slide toggel */
    opacity: 0;
}

input:checked ~ .toggle .bottom_line{  /* slide toggel */
    left: 2px;
    top: 14px;
    width: 25px;
    transform: rotate(135deg);
}

input:checked ~ .slide{  /* slide toggel */
    transform: translateX(0);
}


.main{
    width: 400px;
    height: auto;
    background-color: rgba(20, 24, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    padding: 25px;
    box-sizing: border-box;
    backdrop-filter: blur(15px);
    grid-column: 2; /* added: keeps the login card centered now that .slide is out of grid flow */
    justify-self: center;
    transition: 0.5s ease-in-out;
}

.main:hover{
     box-shadow: 
        0 10px 32px  rgba(59, 130, 246, 0.2),
        0 10px 32px rgba(88, 60, 180, 0.25);
}

img{
    display: block;
    margin:  0 auto;
    border-radius: 50px;
    height: 80px;
    width: 80px;
    object-fit: cover;
}

h2{
    text-align: center;
    font-family: sans-serif;
    color: azure;
    margin-bottom: 0%;
}

.b{
    text-align: center;
    font-family: sans-serif;
    color: rgb(102, 170, 229);
    margin-top: 5px;
    margin-bottom: 0%;
}

.em{
    display: block;
    justify-content: left;
    margin-top: 20px;
    margin-right: 100px;
    border-radius: 10px;
}

.env{
    font-family: sans-serif;
    margin-bottom: 6px;
    margin-top: 0; /* added: prevents inheriting stray top spacing from any global p rule */
    color:  rgb(160, 205, 244);
}

.main input{ /* scoped: only affects the email/password fields, not the checkbox */
    font-family: sans-serif;
    display: block;
    border-radius: 10px;
    margin-left: 10px;
    border: transparent;
    padding: 10px;
    padding-right: 160px;
    background-color:rgba(255, 255, 255, 0.12);
    color: white;
}

.main input::placeholder{
    font-family: sans-serif;
    color:  rgb(102, 170, 229);

}

.pass-wrap {
    margin-top: 20px;
}

.input-row {
    position: relative;
    display: block;
}

.toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgb(102, 170, 229);
}

.sub{
    display: flex;
    justify-content: center;
}

button{
    cursor: pointer;
    font-family: sans-serif;
    margin-top: 20px;
    padding: 10px;
    padding-left: 138px;
    padding-right: 138px;
    border: transparent;
    border-radius: 12px;
    background:  rgb(23, 236, 255);
    color: white;
    text-decoration: bold;
    font-size: 16px;
}

.error{
    color: #2196F3;
    text-align: center;
    margin-top: 10px;
}

.acc{
    font-family: sans-serif;
    text-align: center;
    color: aliceblue;
}

a{
    font-family: sans-serif;
    text-decoration: none;
    color: rgb(102, 170, 229);
}

a:hover{
    text-decoration: underline;
}

.for{
    font-family: sans-serif;
    text-align: center;
    cursor: pointer;
    color: aliceblue;
    padding: 0px;
    margin-bottom: 0px;
    transition: 0.3s ease-in-out;
}

.for:hover{
    text-decoration: underline;
}