* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: #fff;
  color: #1a1a1a;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

header img {
  height: 28px;
}

.back {
  position: absolute;
  left: 20px;
  font-size: 22px;
  color: #ff6e14;
}

main {
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  gap: 60px;
}

.form {
  flex: 1;
  max-width: 420px;
}

h1 {
  font-size: 26px;
  margin-bottom: 30px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

label span {
  color: #ff6e14;
}

input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  outline: none;
}

input:focus {
  border-color: #ff6e14;
}

button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: #ff6e14;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.separator {
  text-align: center;
  margin: 25px 0;
  color: #777;
}

.alt {
  background: #fff;
  border: 1px solid #ccc;
  color: #000;
  margin-bottom: 12px;
}

.apple::before {
  content: " ";
}

.google::before {
  content: "G ";
}

.password {
  position: relative;
}

.eye {
  position: absolute;
  right: 14px;
  top: 14px;
  cursor: pointer;
}

.forgot {
  display: block;
  color: #ff6e14;
  font-size: 14px;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  margin-top: 15px;
  color: #ff6e14;
  font-size: 14px;
}

.hidden {
  display: none;
}

/* VISUELS */
.visuals {
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.pink { background: #ffc0c0; }
.yellow { background: #ffffb0; }
.blue { background: #bfe9ff; }
.peach { background: #ffd2b8; }
.purple { background: #dec2ff; }
.green { background: #c9ffc9; }

/* RESPONSIVE */
@media (max-width: 900px) {
  main {
    flex-direction: column;
  }

  .visuals {
    display: none;
  }
}
