Почему при наведение на первую ссылку вторая исчезает, а при наведение на вторую первая не исчезает?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<div class="header__auth">
<a class="header__auth-signin">Log In</a>
<a class="header__auth-signup">Sign Up</a>
</div>
</body>
</html>
.header__auth {
cursor: pointer;
padding: 0 20px;
display: flex;
justify-content: space-around;
align-items: center;
width: 184px;
font-weight: bold;
color: #F57B3A;
margin: 5px 0;
border: 1px solid #F57B3A;
box-sizing: border-box;
border-radius: 80px;
}
.header__auth-signup {
opacity: 1;
transition: 0.4s;
}
.header__auth-signin {
opacity: 1;
transition: 0.4s;
}
.header__auth-signin:hover ~ .header__auth-signup {
opacity: 0;
transition: 0.4s;
}
.header__auth-signup:hover ~ .header__auth-signin {
opacity: 0;
transition: 0.4s;
}