* {
  box-sizing: border-box;
  padding: 0;
  font-family: Arial, sans-serif;
}

.login-text {
  text-align: center;
  margin-top: 1rem;
}

.email-input {
  margin-top: 20px;
}

.upload-btn {
  display: none;
}

.form-container {
  display: flex;
  flex: 1;
  background-color: #fff;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: 100%;
  gap: 20px;
}

.form-left {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-left-images {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50%;
  gap: 100px;
  overflow: visible;
  margin-bottom: 50px;
}

.form-left-images select {
  flex-shrink: 0;
  max-width: none;
}

.form-left form {
  margin-top: 2rem;
}

.form-left h1,
.form-left p,
.form-left form {
  width: 50%;
}

.form-left form input,
.form-left form button {
  width: 100%;
  margin-bottom: 1rem;
  display: block;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-left form button {
  border: none;
  border-radius: 5px;
  background-color: #379a8d;
  color: #f7f2f2;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.form-left form button:hover {
  background-color: #379a8d;
}

.form-container form input {
  width: 100%;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #f6f8f9;
}

label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  color: #423f3f;
}

.form-left p {
  margin-top: 0.5rem;
  color: #423f3f;
}

/* Columna derecha: cuadrado gris */
.form-right {
  flex: 1;
  border: #ccc 1px solid;
  border-radius: 5px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f6f8f9;
  position: relative;
}

.form-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.form-right .color-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(55, 154, 141, 0.35);
  mix-blend-mode: multiply;
}

.form-right .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 5rem;
  font-weight: bold;
  pointer-events: none;
}

.bottom-image {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.flash-messages .error {
  color: red;
  padding-bottom: 5px;
  width: 100%;
}

.flash-messages .success {
  color: green;
  padding-bottom: 5px;
  width: 100%;
}

.flash-messages .meteo-error {
  color: red;
  padding-bottom: 5px;
  width: 100%;
}

.register-text {
  text-align: center;
}

.user-preview {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  background-color: #f8f8f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-size: 14px;
  color: #333;
  width: 150px;
  cursor: default;
}

.user-preview::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  position: absolute;
  right: 10px;
  transition: transform 0.2s ease;
  pointer-events: none;
}

/* Flecha invertida al abrir el menú */
.user-preview.active::after {
  transform: rotate(-135deg);
}

.user-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.user-role {
  font-size: 12px;
  color: #666;
}

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-options {
  position: absolute;
  top: 85%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  margin-top: 5px;
  border: 1px solid #dcdcdc;
  z-index: 20;
  min-width: 150px;
  display: none;
  opacity: 0;
}

.user-options.show {
  display: block;
  opacity: 1;
}

.user-options a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.form-left p a {
  color: #379a8d;
  text-decoration: underline;
}

.user-options a:hover {
  background-color: #f0f0f0;
}

.settings-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  cursor: pointer;
  color: #333;
}
