:root {
    --primary: #7aa2f7;
    --secondary: #bb9af7;
    --bg-dark: #1a1b26;
    --text-light: #e4e4e4;
    --accent-1: rgba(88, 92, 136, 0.4);
    --accent-2: rgba(28, 30, 44, 0.97);
    --glass-bg: rgba(28, 30, 44, 0.85);
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    background: var(--bg-dark);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #232433 50%, #1f2231 100%);
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.sidebar {
    background: var(--glass-bg);
    width: 300px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease;
}

.logo-container {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    perspective: 1000px;
}

.logo {
    width: 150px;
    height: 150px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.logo:hover {
    transform: rotate3d(1, 1, 0, 15deg);
    box-shadow: 0 15px 40px rgba(122, 162, 247, 0.3);
}

.menu ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.menu li {
    margin: 0.7rem 0;
}

.menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    position: relative;
    overflow: hidden;
}

.menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.menu a:hover::before {
    left: 100%;
}

.menu a:hover {
    background: linear-gradient(145deg, rgba(122, 162, 247, 0.1), rgba(187, 154, 247, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.menu a:active {
    transform: scale(1.1) translateX(10px);
    background: linear-gradient(145deg, rgba(122, 162, 247, 0.2), rgba(187, 154, 247, 0.2));
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(28, 30, 44, 0.3) 0%, rgba(40, 42, 64, 0.3) 100%);
}

.main-box {
    background: var(--glass-bg);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.main-box h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 6s ease infinite;
}

.custom-input {
    width: 35%;
    padding: 18px 24px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(28, 30, 44, 0.6);
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.custom-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 30px rgba(122, 162, 247, 0.2);
    transform: translateY(-2px);
    background: rgba(28, 30, 44, 0.8);
}

.custom-input2 {
    width: 35%;
    padding: 18px 24px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(28, 30, 44, 0.6);
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.custom-input2:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 30px rgba(122, 162, 247, 0.2);
    transform: translateY(-2px);
    background: rgba(28, 30, 44, 0.8);
}

.button {
    cursor: pointer;
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s, background-color 0.3s, border 0.3s;
    margin-left: 10px;
    padding: 5px;
    background-color: rgba(88, 88, 88, 0.301);
    border: 2px solid transparent;
    border-radius: 5px;
}

.button.active {
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(122, 162, 247, 0.3);
    border-radius: 5px;
    z-index: 1;
}

.button:hover {
    color: var(--secondary);
}

.custom-button {
    padding: 18px 36px;
    border: 1px solid rgba(122, 162, 247, 0.4);
    background: linear-gradient(145deg, rgba(122, 162, 247, 0.1), rgba(187, 154, 247, 0.1));
    color: var(--text-light);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.custom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.custom-button:hover::before {
    left: 100%;
}

.custom-button:hover {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    box-shadow: 0 15px 30px rgba(122, 162, 247, 0.3);
    transform: translateY(-4px);
    color: var(--bg-dark);
}

.custom-button:active {
    transform: scale(0.98) translateY(-2px);
}

p {
    position: absolute;
    top: 93%;
    background: linear-gradient(45deg, #bb9af7, #7aa2f7, #bb9af7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s infinite;
}

#phome {
    position: relative;
    font-size: 30px;
}

#ugual {
    color: white;
    padding: 10px;
}

@keyframes floatingShapes {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 20px) scale(1.1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: column;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 0;
        width: auto;
    }

    .logo {
        width: 80px;
    }

    .menu ul {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin: 0;
    }

    .menu li {
        margin: 0;
    }

    .content {
        padding: 2rem 1rem;
        flex-direction: column;
        align-items: center;
    }

    .main-box {
        padding: 2rem;
        margin: 1rem;
        width: 90%;
    }

    .main-box h1 {
        font-size: 2rem;
    }

    .button-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 2rem;
    }

    .custom-input,
    .custom-button {
        width: 100%;
        padding: 16px 20px;
    }

    p {
        font-size: 0.9rem;
        top: 90%;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 1rem;
    }

    .menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        width: 60px;
    }

    .main-box {
        margin: 0.5rem;
    }

    .main-box h1 {
        font-size: 1.5rem;
    }

    .custom-input {
        padding: 14px;
    }

    .custom-button {
        padding: 14px;
    }
}