:root {
  --brand-green: #00d000;
  --brand-yellow: #ffd000;
  --brand-blue: #183eff;
  --brand-red: #ff0000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background-image: url("../images/fundo_multicor.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0);
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.cadastro-card {
  width: min(760px, 100%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 62, 255, 0.2);
  box-shadow: 0 12px 28px rgba(24, 62, 255, 0.12);
  border-radius: 16px;
  padding: 32px;
}

.cadastro-title {
  margin: 0 0 6px;
  color: #102eaf;
}

.cadastro-subtitle {
  margin: 0 0 22px;
  color: #4c5fba;
}

.profiles {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile {
  text-decoration: none;
  border: 2px solid rgba(24, 62, 255, 0.16);
  border-radius: 14px;
  min-height: 180px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  transition: all 0.2s ease;
}

.profile:hover,
.profile:focus-visible {
  border-color: var(--brand-blue);
  box-shadow: 0 0.6rem 1.1rem rgba(24, 62, 255, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.profile-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: rgba(24, 62, 255, 0.08);
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.profile span {
  color: #14226f;
  font-size: 1rem;
  font-weight: 700;
}

.profile small {
  margin-top: 6px;
  color: #5e70c0;
  font-size: 0.84rem;
}

.back-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-red);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  background: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 6px 14px rgba(255, 0, 0, 0.14);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 700px) {
  .cadastro-card {
    padding: 22px;
  }

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