/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/* Body Styling */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f3f3f3;
    position: relative;
    overflow: hidden;
}

/* Background Shapes */
body::before,
body::after,
body .shape-1,
body .shape-2,
body .shape-3,
body .shape-4, 
body .shape-5 {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* First triangle */
body::before {
    background: linear-gradient(45deg, rgba(255,199,0,0.5), rgba(209,0,31,0.5));
    clip-path: polygon(0 0, 20% 0, 10% 10%, 10% 20%, 0 20%);
    transform: rotate(15deg);
    opacity: 0.7;
    top: 0;
    left: 10%;
    width: 500px;
    height: 500px;
}

/* First rectangle */
body::after {
    background-color: rgba(209, 0, 31, 0.3);
    width: 300px;
    height: 150px;
    top: 30%;
    left: 60%;
    transform: rotate(-10deg);
    opacity: 0.5;
}

/* Second triangle */
body .shape-1 {
    background: linear-gradient(135deg, rgba(255,199,0,0.5), rgba(209,0,31,0.5));
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    width: 200px;
    height: 200px;
    top: 60%;
    left: 5%;
    transform: rotate(30deg);
    opacity: 0.4;
}

/* Second rectangle */
body .shape-2 {
    background-color: rgba(255, 199, 0, 0.3);
    width: 250px;
    height: 100px;
    top: 80%;
    left: 70%;
    transform: rotate(25deg);
    opacity: 0.6;
}

/* Third triangle */
body .shape-3 {
    background: linear-gradient(225deg, rgba(255,199,0,0.5), rgba(209,0,31,0.5));
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    width: 300px;
    height: 300px;
    top: 20%;
    left: 80%;
    transform: rotate(-20deg);
    opacity: 0.3;
}

/* Fourth rectangle */
body .shape-4 {
    background-color: rgba(255, 150, 0, 0.4); 
    width: 200px;
    height: 100px;
    top: 50%;
    left: 20%;
    transform: rotate(-10deg);
    opacity: 0.5;
}

/* Fifth triangle */
body .shape-5 {
    background: linear-gradient(315deg, rgba(255,199,0,0.6), rgba(209,0,31,0.6));
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    width: 150px;
    height: 150px;
    top: 60%;
    left: 30%;
    transform: rotate(20deg);
    opacity: 0.4;
}

/* Float animation */
body::before,
body::after,
body .shape-1,
body .shape-2,
body .shape-3,
body .shape-4, 
body .shape-5 {
    animation: floatShapes 8s ease-in-out infinite alternate;
}

/* Animation for floating effect */
@keyframes floatShapes {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(20px) rotate(5deg);
    }
}

/* Navbar Container */
.menu {
    position: absolute;
    top: 0;
    left: 700px;
    right: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

/* Logo Styling */
.sensor-img {
    width: 1000%;
    height: auto;
    margin-right: 100px;
}

/* Navbar Styling - Flex and Responsive */
.navbar ul {
    display: flex;
    gap: 20px;
}

.navbar ul li {
    list-style: none;
}

.navbar ul li a {
    font-size: 40px;
    padding: 15px 20px;
    color: #ffc700;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #d1001f;
}

/* Menu Icon Styling */
.menu-icono {
    width: 10px;
    cursor: pointer;
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .menu-icono {
        display: block;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px;
        border-radius: 5px;
    }

    #menu-toggle:checked + label + .navbar ul {
        display: flex;
    }
}

/* Main Container */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

/* Main Content */
.main {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    padding: 100px;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Heading Styles */
h1 {
    font-size: 3.5em;
    color: #ffc700;
    margin-bottom: 25px;
}

h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 35px;
}

/* Form Styles */
label {
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
    color: #555;
    font-weight: bold;
}

input {
    display: block;
    width: 100%;
    margin-bottom: 25px;
    padding: 24px;
    font-size: 22px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

button {
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
    border: none;
    color: white;
    cursor: pointer;
    background-color: #ffc700;
    width: 100%;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d1001f;
}

/* Toggle Password Button */
#passwordContainer {
    position: relative;
}

#togglePassword {
    font-size: 22px;
    position: absolute;
    right: 10px;
    top: 35%;
    transform: translate(0, -50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 0;
    line-height: 1;
    width: 24px;
    height: 24px;
}
