@import url('HomePage.css');

:root {
  --container: 1100px;
  --accent: #ff2d7a;
}

body {
  background: #faf7f8;
  color: #222;
}

.auth-layout {
  max-width: var(--container);
  margin: 32px auto;
  padding: 0;
  display: flex;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  min-height: 480px;
}

.auth-wrapper {
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 35px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  height: 520px;
}

.auth-visual {
  position: relative;
  flex: 0.8;
  /* min-height: 560px;
  height: 100%; */
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-form-side {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #faf7f8;
}

.auth-visual-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .4s ease;
  background-repeat: no-repeat;
  transition: background-image 0.8s ease-in-out;
}

.auth-visual-overlay {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.auth-visual-overlay h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.auth-visual-overlay p {
  max-width: 350px;
  font-size: 16px;
  line-height: 1.5;
}

.auth-form {
  flex: 1;
  /* background: #faf7f8; */
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.auth-form-inner {
  width: 100%;
  max-width: 360px;
}

.auth-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.auth-error {
  background: #ffe9e9;
  border: 1px solid #f3b3b3;
  color: #b00;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
}

.auth-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-label {
  font-size: 13px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-input {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,45,122,0.25);
}

.auth-meta {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.auth-meta a {
  color: var(--accent);
  text-decoration: none;
}

.auth-meta a:hover {
  text-decoration: underline;
}

.btn-primary.auth-submit {
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 10px 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.container { 
    padding-top: 28px; 
}

.filters, form {
  margin-top: 8px;
}

form label { 
    display:block; 
    margin-bottom:10px; 
    color:#333; 
}

form input[type="text"], 
form input[type="email"], 
form input[type="password"], 
form textarea {
  width:100%;
  padding:10px 12px;
  border:1px solid #e6e6e6;
  border-radius:6px;
  background:#fff;
}

form button.btn-primary { 
    margin-top:12px; 
}

.muted { 
    color: #b00; 
}

@media (max-width: 900px) {
  .auth-layout {
    flex-direction: column;
  }
  .auth-visual {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .auth-layout {
    margin: 16px auto;
    box-shadow: none;
    border-radius: 0;
  }
  .auth-form {
    padding: 24px 18px;
  }
}