body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #140c1f, #15002b);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    background: #1c1c1c;
    border-radius: 15px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 0 15px #a27aff;
    text-align: center;
    margin: 20px;
}
.logo img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}
h1 {
    font-size: 24px;
    color: #a27aff;
    margin-bottom: 20px;
}
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.input-container {
    display: flex;
    align-items: center;
    background: #292929;
    border-radius: 5px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.input-container i {
    margin-right: 10px;
    color: #a27aff;
    transition: transform 0.3s ease, color 0.3s ease;
}
input {
    flex: 1;
    border: none;
    background: none;
    color: #ffffff;
    font-size: 16px;
    padding: 5px;
    transition: transform 0.3s ease;
}
input::placeholder {
    color: #a27aff;
}
input:focus {
    outline: none;
}
.input-container:focus-within {
    box-shadow: 0 0 15px #6800ff;
    transform: scale(1.05);
}
.input-container:focus-within i {
    color: #6800ff;
    transform: rotate(360deg);
}
.input-container:focus-within input {
    transform: translateX(5px);
}
.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
button {
    padding: 10px;
    background: #6800ff;
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
button:hover {
    background: #6100d5;
}
.forgot-password {
    margin-top: 10px;
    color: #a27aff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.forgot-password:hover {
    color: #ffffff;
}
.input-container.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.input-container.checkbox a { text-decoration: underline; }
.back-to-login {
    margin-top: 10px;
    color: #a27aff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.back-to-login:hover {
    color: #ffffff;
}
.hidden {
    display: none;
}
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #4c00ff;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px #a27aff;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    transition: top 0.5s ease;
    text-align: center;
    min-width: 250px;
}

.notification.show {
    top: 20px;
}

.notification.error {
    background: #ff4d4d;
}

.notification.success {
    background: #4caf50;
}
button.loading {
    background: #4a3669;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }

   
    .container {
        width: 90%;        
        max-width: 400px;  
        margin: 10px auto; 
    }

    h1 {
        font-size: 22px;   
    }

   
    .logo img {
        width: 80px; 
        margin-bottom: 15px;
    }
}


@media (max-width: 576px) {
    h1 {
        font-size: 20px;
    }

    .logo img {
        width: 70px;
        margin-bottom: 10px;
    }

   
    .container {
        box-shadow: 0 0 10px #a27aff;
        padding: 15px; 
    }

    .input-container {
       
        padding: 8px;
    }

    i {
        margin-right: 8px;
    }

    input {
        font-size: 14px;
    }

    button {
        padding: 8px;
        font-size: 14px;
    }

    .forgot-password,
    .back-to-login {
        font-size: 12px;
    }
}