/* Register Page Styles */

.register-section {
  min-height: calc(100vh - 200px);
  background: linear-gradient(135deg, #1A73E8 0%, #1557B0 50%, #0d47a1 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.register-section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
  opacity: 0.3;
  top: 0;
  left: 0;
}

@keyframes moveBackground {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.register-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.register-box {
  background: white;
  padding: 45px 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.logo-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #1A73E8 0%, #1557B0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.logo-icon i {
  font-size: 35px;
  color: white;
}

.register-header h2 {
  color: #1A73E8;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
}

.register-header p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.form-group label i {
  color: #1A73E8;
  font-size: 16px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
  background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1A73E8;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
  transform: translateY(-2px);
}

.form-group input::placeholder {
  color: #999;
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: #4caf50;
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #f44336;
}

/* Error Message */
.error-message {
  display: block;
  color: #f44336;
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  padding: 5px;
  transition: color 0.3s;
  z-index: 2;
}

.toggle-password:hover {
  color: #1A73E8;
}

.toggle-password:focus {
  outline: none;
}

/* Password Strength */
.password-strength {
  margin-top: 10px;
  display: none;
}

.password-strength.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strength-bar {
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.weak {
  width: 33%;
  background-color: #f44336;
}

.strength-fill.medium {
  width: 66%;
  background-color: #ff9800;
}

.strength-fill.strong {
  width: 100%;
  background-color: #4caf50;
}

.strength-text {
  font-size: 12px;
  color: #666;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 45px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 18px;
  transition: transform 0.3s;
}

.select-wrapper:focus-within .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: #1A73E8;
}

.form-hint {
  display: block;
  margin-top: 6px;
  color: #999;
  font-size: 12px;
  font-style: italic;
}

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  user-select: none;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1A73E8;
  margin-top: 2px;
  flex-shrink: 0;
}

.terms-link {
  color: #1A73E8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

/* Register Button */
.btn-register {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1A73E8 0%, #1557B0 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-register:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}

.btn-register:hover:not(:disabled) {
  background: linear-gradient(135deg, #1557B0 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

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

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

.btn-register i {
  font-size: 18px;
}

/* Register Footer */
.register-footer {
  margin-top: 25px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.register-footer p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.register-footer a {
  color: #1A73E8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.register-footer a:hover {
  color: #1557B0;
  text-decoration: underline;
}

/* Benefits Section */
.benefits-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeInRight 0.8s ease-out;
  backdrop-filter: blur(10px);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.benefits-section h3 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.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-item:hover {
  transform: translateX(10px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.2);
}

.benefit-item i {
  font-size: 28px;
  color: #1A73E8;
  margin-top: 2px;
  flex-shrink: 0;
}

.benefit-item h4 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.benefit-item p {
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* Active Nav Item */
.btn-login.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Success Animation */
@keyframes success {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-animation {
  animation: success 0.5s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .register-container {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .benefits-section {
    order: -1;
  }
}

@media (max-width: 768px) {
  .register-section {
    padding: 40px 15px;
  }

  .register-box {
    padding: 35px 25px;
  }

  .register-header h2 {
    font-size: 24px;
  }

  .logo-icon {
    width: 60px;
    height: 60px;
  }

  .logo-icon i {
    font-size: 30px;
  }

  .benefits-section {
    padding: 30px 20px;
  }

  .benefits-section h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .register-box {
    padding: 30px 20px;
  }

  .form-group input,
  .form-group select {
    padding: 12px 14px;
    font-size: 14px;
  }

  .benefit-item {
    padding: 15px;
  }

  .benefit-item i {
    font-size: 24px;
  }

  .benefit-item h4 {
    font-size: 14px;
  }

  .benefit-item p {
    font-size: 12px;
  }
}

/* Select option styling */
select option {
  padding: 10px;
  font-size: 15px;
}

select option:first-child {
  color: #999;
}

