/* =============================== REGISTRATION FORM SECTION =============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ===================== REGISTRATION SECTION ===================== */

.regiform {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow: hidden;
  padding: 80px 0;
}

/* ===================== ANIMATED BACKGROUND ===================== */

.bg-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  top: 40%;
  right: -100px;
  animation-delay: 4s;
}

.shape-3 {
  width: 350px;
  height: 350px;
  bottom: -150px;
  left: 25%;
  animation-delay: 8s;
}

.shape-4 {
  width: 200px;
  height: 200px;
  top: 15%;
  right: 25%;
  animation-delay: 12s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-60px) rotate(180deg);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== MAIN CONTAINER ===================== */

.register-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.register-wrapper {
  max-width: 1300px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 40px;
  overflow: visible;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  animation: fadeInUp 0.9s ease-out;
}

/* ===================== LEFT SIDE - FORM ===================== */

.register-form-section {
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: slideInLeft 0.9s ease-out;
  max-height: none;
  overflow-y: auto;
  height: auto;
}

.form-header {
  margin-bottom: 40px;
  text-align: center;
}

.form-header h3 {
  font-size: 2.3rem;
  color: #2d3748;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.form-header p {
  color: #718096;
  font-size: 1.05rem;
}

/* ===================== FORM ELEMENTS ===================== */

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
  font-family: inherit;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0aec0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 45px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.1);
}

.form-group input:focus ~ .input-icon {
  color: #667eea;
}

/* ===================== PASSWORD STRENGTH ===================== */

.password-strength {
  margin-top: 10px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  display: none;
}

.password-strength-bar {
  height: 100%;
  transition: all 0.4s ease;
  width: 0%;
}

.password-strength.weak .password-strength-bar {
  width: 33%;
  background: linear-gradient(90deg, #fc8181, #f56565);
}

.password-strength.medium .password-strength-bar {
  width: 66%;
  background: linear-gradient(90deg, #f6ad55, #ed8936);
}

.password-strength.strong .password-strength-bar {
  width: 100%;
  background: linear-gradient(90deg, #48bb78, #38a169);
}

.password-hint {
  font-size: 0.85rem;
  color: #718096;
  margin-top: 8px;
  display: none;
}

/* ===================== TERMS & CONDITIONS ===================== */

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 15px;
  background: #f7fafc;
  border-radius: 12px;
}

.terms-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #667eea;
  margin-top: 2px;
  flex-shrink: 0;
}

.terms-checkbox label {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.terms-checkbox a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.terms-checkbox a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ===================== ERROR MESSAGE ===================== */

.error-message {
  color: #fc8181;
  font-size: 0.88rem;
  margin-top: 8px;
  font-weight: 500;
  animation: slideInLeft 0.3s ease-out;
}

/* ===================== BUTTONS ===================== */

.btn-register {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  font-family: inherit;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.btn-register:hover::before {
  left: 100%;
}

.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(102, 126, 234, 0.45);
}

.btn-register:active {
  transform: translateY(-1px);
}

/* ===================== DIVIDER ===================== */

.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 25px 0;
}

.divider span {
  color: #a0aec0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* ===================== SOCIAL BUTTONS ===================== */

.social-register {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.btn-social {
  padding: 16px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.btn-social:hover {
  border-color: #667eea;
  background: #f7fafc;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.btn-social i {
  font-size: 1.3rem;
}

/* ===================== LOGIN LINK ===================== */

.login-link {
  text-align: center;
  margin-top: 25px;
  color: #718096;
  font-size: 1rem;
}

.login-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.login-link a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ===================== SCROLLBAR STYLING ===================== */

.register-form-section::-webkit-scrollbar {
  width: 10px;
}

.register-form-section::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}

.register-form-section::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
}

.register-form-section::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ===================== RIGHT SIDE - INFO ===================== */

.register-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.register-info::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: pulse 5s ease-in-out infinite;
}

.register-info::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

.info-content {
  position: relative;
  z-index: 2;
  animation: slideInRight 0.9s ease-out;
}

.info-content h2 {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 25px;
  font-weight: 900;
  line-height: 1.2;
}

.info-content > p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  margin-bottom: 50px;
}

/* ===================== BENEFITS ===================== */

.benefits {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: white;
  animation: slideInRight 0.9s ease-out backwards;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(10px);
}

.benefit-item:nth-child(1) {
  animation-delay: 0.2s;
}

.benefit-item:nth-child(2) {
  animation-delay: 0.4s;
}

.benefit-item:nth-child(3) {
  animation-delay: 0.6s;
}

.benefit-item:nth-child(4) {
  animation-delay: 0.8s;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.benefit-text h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.benefit-text p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.6;
}

/* ===================== RESPONSIVE DESIGN ===================== */

@media (max-width: 1024px) {
  .register-wrapper {
    grid-template-columns: 1fr;
  }

  .register-form-section {
    padding: 60px 50px;
    height: auto;
    order: 2;
  }

  .register-info {
    padding: 60px 50px;
    order: 1;
  }

  .register-wrapper {
    overflow: visible;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .regiform {
    padding: 40px 0;
  }

  .register-container {
    padding: 30px 15px;
  }

  .register-wrapper {
    border-radius: 30px;
  }

  .register-form-section {
    padding: 50px 35px;
  }

  .register-info {
    padding: 50px 35px;
  }

  .info-content h2 {
    font-size: 2.2rem;
  }

  .form-header h3 {
    font-size: 1.9rem;
  }

  .social-register {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .register-wrapper {
    border-radius: 25px;
  }

  .register-form-section {
    padding: 40px 25px;
  }

  .register-info {
    padding: 40px 25px;
  }

  .info-content h2 {
    font-size: 1.9rem;
  }

  .form-header h3 {
    font-size: 1.7rem;
  }

  .benefit-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group select {
    padding: 14px 16px 14px 48px;
    font-size: 0.95rem;
  }

  .btn-register {
    padding: 16px;
    font-size: 1rem;
  }
}
