:root {
  --bg: #ffffff;
  --primary: #1f2937;
  --secondary: #901802;
  --heading: #0c2e53;
  --text: #374151;
  --muted: #6b7280;
  --border: rgba(31, 41, 55, 0.1);
  --glass: rgba(255, 255, 255, 0.85);
  --font-main: 'Cormorant Upright', serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: var(--font-main);
}

html {
  font-size: 62.5%;
}

body {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

.register-image {
  height: 100vh;
  width: 55%;
  display: flex;
  overflow: hidden;
  position: relative;
}

.register-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, var(--bg));
}

.register-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.registerCtn {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  padding: 2rem;
}

.register-card {
  width: 100%;
  max-width: 46rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(12, 46, 83, 0.08);
  text-align: center;
}

#text {
  margin-bottom: 3rem;
}

#text h1 {
  color: var(--heading);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

#text p {
  color: var(--muted);
  font-size: 1.6rem;
  font-weight: 500;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form input {
  width: 100%;
  padding: 1.2rem 1.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

form input:focus {
  border-color: var(--heading);
  box-shadow: 0 0 0 4px rgba(12, 46, 83, 0.08);
}

.btnCtn {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.btn {
  flex: 1;
  padding: 1.4rem;
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0c2e53, #1a4a80);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(12, 46, 83, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 46, 83, 0.3);
}

.ggBtnCtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ggBtnCtn:hover {
  background: #f9fafb;
  border-color: var(--heading);
}

.ggBtnCtn i {
  font-size: 2.4rem;
  color: var(--heading);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.error-msg {
  color: #b91c1c;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

@media (max-width: 1200px) {
  #text h1 {
    font-size: 3.5rem;
  }
  .register-card {
    max-width: 42rem;
  }
}

@media (max-width: 1024px) {
  .register-image {
    width: 40%;
  }
  .registerCtn {
    width: 60%;
  }
}

@media (max-width: 850px) {
  .register-image {
    width: 35%;
  }
  .registerCtn {
    width: 65%;
  }
  .register-card {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  body {
    height: auto;
    overflow-y: auto;
  }
  .register-image {
    display: none;
  }
  .registerCtn {
    width: 100%;
    padding: 4rem 2rem;
    min-height: 100vh;
    background: #ffffff;
    align-items: flex-start;
  }
  .register-card {
    max-width: 100%;
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
  }
  #text h1 {
    font-size: 3.2rem;
    text-align: left;
  }
  #text p {
    text-align: left;
  }
  form {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .registerCtn {
    padding: 3rem 1.5rem;
  }
  #text h1 {
    font-size: 3rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  form input {
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
  }
  .btnCtn {
    flex-direction: column;
    gap: 1.5rem;
  }
  .btn {
    width: 100%;
    padding: 1.4rem;
  }
  .ggBtnCtn {
    width: 100%;
    height: 5rem;
  }
}
