/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4);
  background-attachment: fixed;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left Section (Image + Overlay) */
.left-section {
  flex: 1;
  position: relative;
  background: url('images/register.jpg') no-repeat center center/cover;
}

.left-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  z-index: 1;
}

.left-section .overlay {
  position: relative;
  z-index: 2;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 60px;
  width: 100%;
}

.left-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1.2;
}

.left-section h1 span {
  color: #ffd6e0;
}

.left-section p {
  font-size: 1.2rem;
  margin-top: 15px;
  line-height: 1.6;
}

/* Right Section (Form) */
.right-section {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.register-box {
  width: 100%;
  max-width: 450px;
}

.register-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #444;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #ee9ca7;
  box-shadow: 0 0 8px rgba(238, 156, 167, 0.3);
}

.register-btn {
  width: 100%;
  padding: 15px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, #ff758c, #ff7eb3);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 118, 147, 0.4);
}

.login-link {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.login-link a {
  color: #ff758c;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    height: 100vh; /* full screen */
    width: 100vw;
  }

  /* Hide left image completely */
  .left-section {
    display: none;
  }

  /* Right section takes over full screen */
  .right-section {
    flex: none;
    width: 100vw;
    height: 100vh;
    padding: 40px 20px;
    background: #fff; /* solid white background */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .register-box {
    width: 100%;
    height: 100%; /* make it fill */
    max-width: none; /* remove width limit */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .register-box h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333; /* dark text for contrast */
  }

  .form-group label {
    color: #444; /* keep labels readable on white */
  }

  .form-group input {
    padding: 14px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
  }

  .form-group input:focus {
    border-color: #ff758c;
    box-shadow: 0 0 6px rgba(255, 118, 147, 0.3);
  }

  .register-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff758c, #ff7eb3);
    color: #fff;
    border: none;
    cursor: pointer;
  }

  .login-link {
    color: #555;
    margin-top: 20px;
    text-align: center;
  }

  .login-link a {
    color: #ff758c;
  }
}



