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

body, html {
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background: #2f2f2f;
  color: #fff;
}

.container {
  display: flex;
  height: 100vh;
  width: 100%;
}

.left-panel {
  flex: 1;
  position: relative;
  background: rgba(20, 20, 20, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(60, 60, 60, 0.2);
  padding: 15px;
  border-radius: 8px;
}

.logo-img {
  width: 70px;
  height: auto;
}

.logo-text h2 {
  font-size: 1.2rem;
}

.logo-text p {
  font-size: 0.9rem;
  color: #bbb;
}

.bg-img {
  margin: 0 auto;
  margin-top: -40px;
  display: block;
  width: 100%;
  height: auto;         
  max-width: 100%;      
  object-fit: cover;  
}


.right-panel {
  flex: 1;
  padding: 60px;
  background: #2f2f2f;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-panel h2 {
  margin-bottom: 10px;
}

.right-panel p {
  margin-bottom: 20px;
}

a {
  color: #fff;
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.name-fields {
  display: flex;
  gap: 10px;
}

input, select, button {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

input, select {
  width: 100%;
}

button {
  background: #fff;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #ddd;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.error {
  color: red;
  font-size: 0.8rem;
  margin-left: 5px;
}

.divider {
  text-align: center;
  margin: 20px 0;
  color: #aaa;
  font-size: 0.9rem;
}

.social-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-buttons button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #444;
  color: #fff;
}

.social-buttons img {
  width: 20px;
  height: 20px;
}
input.invalid,
input.invalid:focus {
  border: 2px solid rgba(231, 76, 60, 0.95);
  box-shadow: 0 0 0 6px rgba(231, 76, 60, 0.07);
}


.error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-left: 6px;
}
html, body {
  height: 100%;
  overflow-x: hidden;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;      
  overflow: hidden;  
}
.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.left-panel, .right-panel {
  max-width: 50vw;   
  overflow: hidden;
}

/* Small phones (480px and down) */
@media only screen and (max-width: 480px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .left-panel, .right-panel {
    max-width: 100vw;
    padding: 15px;
    width: 100%;
  }
  .logo-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }
  .logo-img {
    width: 50px;
  }
  .logo-text h2 {
    font-size: 1rem;
  }
  .logo-text p {
    font-size: 0.75rem;
  }
  .bg-img {
    margin-top: -10px;
    width: 100%;
    height: auto;
  }
  .right-panel {
    padding: 15px;
  }
  input, select, button {
    font-size: 0.85rem;
    padding: 8px;
  }
  .name-fields {
    flex-direction: column;
    gap: 8px;
  }
  .social-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .social-buttons button {
    width: 100%;
  }
}

/* Medium phones (481px to 767px) */
@media only screen and (min-width: 481px) and (max-width: 767px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .left-panel, .right-panel {
    max-width: 100vw;
    padding: 20px;
    width: 100%;
  }
  .logo-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
  }
  .logo-img {
    width: 60px;
  }
  .logo-text h2 {
    font-size: 1.1rem;
  }
  .logo-text p {
    font-size: 0.8rem;
  }
  .bg-img {
    margin-top: -15px;
    width: 100%;
    height: auto;
  }
  .right-panel {
    padding: 25px;
  }
  .name-fields {
    gap: 10px;
  }
  input, select, button {
    font-size: 0.9rem;
    padding: 10px;
  }
}

/* Tablets (768px to 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .left-panel, .right-panel {
    max-width: 100vw;
    padding: 30px;
    width: 100%;
  }
  .logo-block {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 15px;
  }
  .logo-img {
    width: 70px;
  }
  .logo-text h2 {
    font-size: 1.2rem;
  }
  .logo-text p {
    font-size: 0.9rem;
  }
  .bg-img {
    margin-top: -20px;
    width: 100%;
    height: auto;
  }
  .right-panel {
    padding: 40px;
  }
  .name-fields {
    gap: 12px;
  }
  input, select, button {
    padding: 12px;
  }
}

/* Smaller laptops/tablets (1024px to 1199px) */
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
  .container {
    flex-direction: row;
  }
  .left-panel, .right-panel {
    max-width: 50vw;
    padding: 40px;
    width: 50%;
  }
  .logo-block {
    gap: 15px;
    padding: 15px;
  }
  .logo-img {
    width: 70px;
  }
  .logo-text h2 {
    font-size: 1.2rem;
  }
  .logo-text p {
    font-size: 0.9rem;
  }
  .bg-img {
    margin-top: -30px;
    width: 100%;
    height: auto;
  }
  .right-panel {
    padding: 50px;
  }
  .name-fields {
    gap: 15px;
  }
}

/* Medium laptops (1200px to 1365px) */
@media only screen and (min-width: 1200px) and (max-width: 1365px) {
  .container {
    flex-direction: row;
  }
  .left-panel, .right-panel {
    max-width: 50vw;
    padding: 50px;
    width: 50%;
  }
  .logo-block {
    gap: 15px;
    padding: 15px;
  }
  .logo-img {
    width: 70px;
  }
  .logo-text h2 {
    font-size: 1.2rem;
  }
  .logo-text p {
    font-size: 0.9rem;
  }
  .bg-img {
    margin-top: -40px;
    width: 100%;
    height: auto;
  }
  .right-panel {
    padding: 60px;
  }
}

/* Large laptops/desktops (1366px to 1919px) - e.g., 1920x1080 */
@media only screen and (min-width: 1366px) and (max-width: 1919px) {
  .container {
    flex-direction: row;
  }
  .left-panel, .right-panel {
    max-width: 50vw;
    padding: 50px;
    width: 50%;
  }
  .logo-block {
    gap: 15px;
    padding: 15px;
  }
  .logo-img {
    width: 70px;
  }
  .logo-text h2 {
    font-size: 1.2rem;
  }
  .logo-text p {
    font-size: 0.9rem;
  }
  .bg-img {
    margin-top: -40px;
    width: 100%;
    height: auto;
  }
  .right-panel {
    padding: 60px;
  }
}

/* Extra large desktops (1920px and up) - e.g., 4K displays */
@media only screen and (min-width: 1920px) {
  .container {
    flex-direction: row;
  }
  .left-panel, .right-panel {
    max-width: 50vw;
    padding: 60px;
    width: 50%;
  }
  .logo-block {
    gap: 15px;
    padding: 20px;
  }
  .logo-img {
    width: 80px;
  }
  .logo-text h2 {
    font-size: 1.3rem;
  }
  .logo-text p {
    font-size: 1rem;
  }
  .bg-img {
    margin-top: -50px;
    width: 100%;
    height: auto;
  }
  .right-panel {
    padding: 70px;
  }
  .name-fields {
    gap: 20px;
  }
  input, select, button {
    padding: 14px;
  }
}