@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --primary-brown: #5e351d;
  --primary-hover: #311c10;
  --border-color: rgba(84, 41, 12, 0.128);
  --text-muted: #777777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #ffffff;
}

.main {
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ================= LEFT SIDE (BRAND HERO BASE) ================= */
.brand-section {
  width: 50%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  padding: 20px 30px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.brand-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.login-brand, .signup-brand {
  background: linear-gradient(
    135deg,
    rgba(163, 140, 128, 0.8) 20%,
    rgba(90, 67, 55, 0.6) 50%,
    rgba(184, 159, 147, 0.75) 100%
  ),
  url('image/login.jpg') center/cover no-repeat;
}

.brand-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand-section h1 {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.brand-section p {
  position: relative;
  z-index: 2;
  font-family: 'Great Vibes', cursive;
  color: #e2d7cf;
  font-size: 70px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 4px;
  text-align: center;
  width: 100%;
}

/* ================= RIGHT SIDE (FORM CONTAINER) ================= */
.form-container {
  width: 50%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #ffffff;
}

/* ================= LOGIN SPECIFIC BOX & ELEMENTS ================= */
.login-card {
  width: 310px !important;
  max-width: 310px !important;
  height: auto !important;
  padding: 18px 20px !important;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-brown);
  margin-bottom: 15px;
  text-align: center;
}

.login-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-align: center;
}

.login-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  background: var(--primary-brown) !important;
  border: none !important;
  color: white !important;
  border-radius: 5px;
  padding: 7px 10px;
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(94, 53, 29, 0.15);
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: var(--primary-hover) !important;
}

/* ================= SIGNUP SPECIFIC BOX & ELEMENTS ================= */
.signup-card {
  width: 310px !important;
  max-width: 310px !important;
  height: auto !important;
  padding: 16px 18px !important;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signup-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-brown);
  margin-top: 5px;
  margin-bottom: 8px;
  text-align: center;
}

.signup-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  text-align: center;
}

.signup-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  background: var(--primary-brown) !important;
  border: none !important;
  color: white !important;
  border-radius: 5px;
  padding: 7px 10px;
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(94, 53, 29, 0.15);
  transition: all 0.2s ease;
}

.signup-btn:hover {
  background: var(--primary-hover) !important;
}

.form-group {
  margin-bottom: 8px;
  position: relative;
}

.form-control {
  height: 28px;
  padding: 2px 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.3px;
  border-radius: 5px;
  border: 1px solid #5e351d;
  background-color: #fffefe;
  transition: all 0.2s ease;
  color: #333333;
}

.form-control:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(94, 53, 29, 0) !important;
  border-color: var(--primary-brown) !important;
  background-color: #ffffff;
}

.forgot-password {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  margin-top: 3px;
}

.forgot-password:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.login-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 2px;
  margin-bottom: 6px;
}

.switch-form-text {
  font-size: 9.5px;
  letter-spacing: 0.3px;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.switch-form-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--primary-brown);
  cursor: pointer;
  text-decoration: none;
  margin-left: 3px;
}

.switch-form-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.form-group.row {
  margin-left: -2px;
  margin-right: -2px;
}

.form-group.row .col-6 {
  padding-left: 2px;
  padding-right: 2px;
}

.login-btn:focus,
.login-btn:active,
.btn-custom:focus,
.btn-custom:active {
  outline: none !important;
  box-shadow: none !important;
}

/* ================= RESPONSIVE / MOBILE / MINIMIZED SCREEN ================= */
@media (max-width: 900px) {
  html, body {
    overflow-y: auto !important;
    height: auto !important;
  }
  .main {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh;
  }
  .brand-section, .form-container {
    width: 100% !important;
    height: auto !important;
  }
  .brand-section {
    padding: 25px 15px !important;
    min-height: 150px;
  }
  .brand-section h1 {
    font-size: 16px !important;
    letter-spacing: 2px !important;
    margin-top: 15px;
    margin-bottom: 6px !important;
  }
  .brand-section p {
    font-size: 46px !important;
    letter-spacing: 2px !important;
  }
  .form-container {
    padding: 20px 15px !important;
  }
  .login-card, .signup-card {
    width: 100% !important;
    max-width: 310px !important;
    height: auto !important;
    padding: 18px 15px !important;
  }
}