* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor */
.container {
    width: 1200px;
    max-width: 95%;
}

/* Card principal */
.card {
    display: flex;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Imagen izquierda */
.left {
    width: 45%;
}

.left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Formulario derecha */
.right {
    width: 55%;
    padding: 50px;
}

h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

form label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    margin-top: 15px;
}

input, select {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #f7f7f7;
    outline: none;
    font-size: 14px;
}

input:focus, select:focus {
    border-color: #2d5be3;
    background: #fff;
}

/* Opciones login */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.remember {
    font-weight: normal;
    margin-left: 5px;
}

.forgot {
    color: #2d5be3;
    text-decoration: none;
}

/* Botones */
.btn-primary {
    width: 100%;
    background: #2d5be3;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 14px;
    margin-top: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.btn-success {
    width: 100%;
    background: #2c8b34;
    color: #fff;
    padding: 15px;
    border-radius: 14px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
}

.register-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

/* Grid register */
.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full {
    grid-column: span 2;
}

/* Responsive */
@media(max-width: 992px) {
    .card {
        flex-direction: column;
    }

    .left {
        width: 100%;
        height: 300px;
    }

    .right {
        width: 100%;
        padding: 30px;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: span 1;
    }
}





/* Grupo teléfono */
.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group select {
    width: 45%;
}

.phone-group input {
    width: 55%;
}

/* Scroll bonito del select */
select {
    cursor: pointer;
}

/* Hover botones */
.btn-primary:hover {
    background: #1f49c7;
    transition: 0.3s;
}

.btn-success:hover {
    background: #23742a;
    transition: 0.3s;
}










.phone-wrapper {
    display: flex;
    gap: 10px;
}

.custom-select {
    position: relative;
    width: 180px;
}

.selected-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.selected-option img {
    width: 24px;
}

.options-container {
    position: absolute;
    top: 60px;
    left: 0;
    width: 220%;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 999;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
}

.option:hover {
    background: #f0f0f0;
}

.option img {
    width: 24px;
}
