@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins';
    min-height: 100vh;
    display: flex;
    background-color: #E3EAEC;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1396px;
    margin: 0 auto;
    gap: 20px;
}

/* Panel izquierdo */
.left-panel {
    flex: 1;
    max-width: 600px;
    background: linear-gradient(rgba(10, 30, 46, 0.7), rgba(10, 30, 46, 0.7)), url('../../img/fondo-panel.png');
    background-size: auto;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Montserrat';
    font-weight: 500;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.welcome-text {
    color: white;
    text-align: center;
    z-index: 2;
}

.welcome-text h2 {
    font-size: 2.2em;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-text span {
    color: #718096;
}

.dots-indicator {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Panel derecho */
.right-panel {
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 30px;
    overflow-y: auto; /* Permite scroll interno si es necesario */
}

.logo {
    width: 170px;
    height: 80px;
    background-image: url('/static/img/Capa_2.png');
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-family: 'Poppins';
    font-size: 2em;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-header p {
    color: #718096;
    font-size: 16px;
}

.form-container {
    justify-content: start;
    align-items: start;
    width: 100%;
    max-width: 380px;
}

.form-group {
    margin-bottom: 18px; /* Reducimos más el espaciado */
}

.form-group label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px; /* Reducimos padding de 14px a 12px */
    border: 2px solid #98ACB8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #E3EAEC;
}

.form-input:focus {
    outline: none;
    border-color: #3182ce;
    background: #E3EAEC;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #98ACB8;
    border-radius: 12px;
    background: #E3EAEC;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-trigger:hover {
    border-color: #718096;
}

.custom-select.active .select-trigger {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.flag-emoji {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.divider {
    width: 1px;
    height: 24px;
    background: #98ACB8;
    flex-shrink: 0;
}

.country-name {
    flex: 1;
    font-size: 16px;
    color: #2d3748;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: #718096;
}

.custom-select.active .arrow-icon {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #98ACB8;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.select-option:hover {
    background: #E3EAEC;
}

.select-option.selected {
    background: #E3EAEC;
}

/* Scrollbar personalizado para el dropdown */
.select-options::-webkit-scrollbar {
    width: 8px;
}

.select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.select-options::-webkit-scrollbar-thumb {
    background: #98ACB8;
    border-radius: 10px;
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: #718096;
}
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 18px;
}

.signup-btn {
    font-family: 'Poppins';
    height: 56px;
    width: calc(100% + 80px);
    margin-left: -40px;
    padding: 16px;
    background: #081823;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.signup-btn:hover {
    background: #081823;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.3);
}

.login-link {
    text-align: center;
    margin-top: 25px; /* Reducimos un poco */
    color: #718096;
    font-size: 14px;
}

.login-link a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    color: #718096;
}

/* Estilos para las banderas */
.fi {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
        gap: 15px;
    }

    .container {
        flex-direction: column;
        gap: 15px;
    }

    .left-panel {
        flex: none;
        height: 300px;
        padding: 20px;
    }

    .welcome-text h2 {
        font-size: 1.5em;
    }

    .right-panel {
        padding: 30px 20px;
        overflow-y: visible;
    }
}