:root {
  --rose: #c8506e;
  --rose-dark: #a03050;
  --rose-pale: #fdf3f5;
  --black: #1a1218;
  --gray: #6b5c62;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--rose-pale);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.back-link {
  position: fixed;
  top: 28px;
  left: 32px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
  z-index: 10;
}

.back-link:hover { color: var(--rose); }

.login-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 860px;
  min-height: 520px;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(160,48,80,0.12);
  margin: 20px;
  animation: rise 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-deco {
  flex: 1;
  min-height: 520px;
  background: linear-gradient(160deg, var(--rose) 0%, var(--rose-dark) 100%);
  position: relative;
  overflow: hidden;
}

.login-deco::before {
  content: 'Bela Rosa';
  font-family: var(--serif);
  font-size: 72px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.12);
  position: absolute;
  bottom: -10px;
  left: -10px;
  line-height: 1;
  white-space: nowrap;
}

.login-deco::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.07);
}

.login-box {
  width: 360px;
  flex-shrink: 0;
  padding: 60px 48px;
}

.brand {
  margin-bottom: 48px;
}

.brand h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 6px;
}

.brand p {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--gray);
  text-transform: uppercase;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #e8dde0;
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  transition: border-color 0.2s;
}

.field input:focus {
  border-bottom-color: var(--rose);
}

.field input::placeholder {
  color: #ccc;
}

button {
  width: 100%;
  margin-top: 12px;
  padding: 15px;
  background: var(--rose);
  color: white;
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

button:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(160,48,80,0.25);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.erro {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff0f3;
  border-left: 3px solid var(--rose);
  font-size: 13px;
  color: var(--rose-dark);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .login-deco { display: none; }
  .login-box { width: 100%; padding: 48px 32px; }
  .login-wrap { max-width: 400px; }
}
