/* ===== Modern Register Page Styles ===== */

/* Register Container */
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  overflow: hidden;
  padding: 2rem 0;
}

/* Background Animation */
.register-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 60px;
  height: 60px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.shape-2 {
  width: 100px;
  height: 100px;
  top: 25%;
  right: 12%;
  animation-delay: 1.5s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 15%;
  animation-delay: 3s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  top: 70%;
  right: 20%;
  animation-delay: 4.5s;
}

.shape-5 {
  width: 90px;
  height: 90px;
  top: 40%;
  left: 60%;
  animation-delay: 2s;
}

.shape-6 {
  width: 70px;
  height: 70px;
  top: 80%;
  left: 40%;
  animation-delay: 5.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

/* Register Form Container */
.register-form-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  padding: 2rem;
}

.register-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Register Header */
.register-header {
  text-align: center;
  margin-bottom: 3rem;
}

.register-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.register-title h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.register-title p {
  color: #64748b;
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Form Styles */
.modern-register-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.form-section:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.section-title h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.section-title p {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0;
}

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

.form-group {
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-label i {
  color: #10b981;
  width: 16px;
  text-align: center;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #1e293b;
}

.form-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  display: none;
}

.form-error:not(:empty) {
  display: block;
}

/* Password Input Group */
.password-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-group .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

/* User Type Selection */
.user-type-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.user-type-option {
  position: relative;
}

.user-type-radio {
  display: none;
}

.user-type-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.user-type-label:hover {
  border-color: #10b981;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
}

.user-type-option.active .user-type-label,
.user-type-radio:checked + .user-type-label {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

.user-type-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.user-type-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.user-type-content p {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Terms Section */
.terms-section {
  text-align: center;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-checkbox {
  display: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #64748b;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 0.375rem;
  position: relative;
  transition: all 0.3s ease;
}

.form-checkbox:checked + .checkbox-label .checkmark {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
}

.form-checkbox:checked + .checkbox-label .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-link {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  color: #059669;
  text-decoration: underline;
}

/* Register Button */
.register-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.register-btn:active {
  transform: translateY(0);
}

.register-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.divider span {
  background: white;
  padding: 0 1rem;
  color: #64748b;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

/* Social Register */
.social-register {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  background: white;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.google-btn:hover {
  border-color: #db4437;
  color: #db4437;
}

.microsoft-btn:hover {
  border-color: #0078d4;
  color: #0078d4;
}

.social-btn i {
  font-size: 1.25rem;
}

/* Register Footer */
.register-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.register-footer p {
  color: #64748b;
  margin-bottom: 0;
  font-size: 0.875rem;
}

.login-link {
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.login-link:hover {
  color: #059669;
  text-decoration: none;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .register-form-container {
    padding: 1rem;
  }

  .register-form {
    padding: 2rem;
  }

  .register-title h1 {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .user-type-selection {
    grid-template-columns: 1fr;
  }

  .social-register {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .register-form {
    padding: 1.5rem;
  }

  .register-title h1 {
    font-size: 1.75rem;
  }

  .register-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .form-section {
    padding: 1.5rem;
  }
}

/* Focus States */
.form-group.focused .form-input {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group.has-value .form-input {
  border-color: #10b981;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-form {
  animation: fadeInUp 0.8s ease-out;
}

.form-section {
  animation: fadeInUp 0.8s ease-out;
}

.form-section:nth-child(1) {
  animation-delay: 0.1s;
}
.form-section:nth-child(2) {
  animation-delay: 0.2s;
}
.form-section:nth-child(3) {
  animation-delay: 0.3s;
}
.form-section:nth-child(4) {
  animation-delay: 0.4s;
}
.form-section:nth-child(5) {
  animation-delay: 0.5s;
}
.form-section:nth-child(6) {
  animation-delay: 0.6s;
}

/* Print Styles */
@media print {
  .register-container {
    background: white !important;
  }

  .register-background {
    display: none;
  }

  .register-form {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }
}
