/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand__logo { display:block }

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  transition: color 0.3s ease;
}

.back-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.back-link:hover {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Register Main Section */
.register-main {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.register-background {
  display: none;
}

.register-overlay {
  display: none;
}

.register-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
}

.register-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-header {
  text-align: center;
  margin-bottom: 32px;
}

.register-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: #3b82f6;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.register-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.register-header p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

/* Alert Messages */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
  color: #991b1b;
  border: 1px solid #f87171;
}

/* Form Styles */
.register-form {
  margin-bottom: 32px;
}

.name-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group label .required {
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
}

.form-group label .optional {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #9ca3af;
  transition: color 0.3s ease;
  z-index: 2;
}

.form-group input {
  width: 100%;
  padding: 16px 16px 16px 52px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.form-group input:focus + .input-icon,
.form-group input:not(:placeholder-shown) + .input-icon {
  color: #3b82f6;
}

.form-group input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}


/* Register Button */
.btn-register {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1e5aff 0%, #1548cc 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-register:hover::before {
  left: 100%;
}

.btn-register:hover {
  background: linear-gradient(135deg, #1548cc 0%, #0f3aa3 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 90, 255, 0.4);
}

.btn-register:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(30, 90, 255, 0.3);
}

/* Register Footer */
.register-footer {
  text-align: center;
  padding-top: 24px;
}

.divider {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.divider span {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 16px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.register-footer p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.link:hover::after {
  width: 100%;
}

.link:hover {
  color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .register-main {
    padding: 80px 16px 40px;
  }
  
  .register-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
  
  .register-header h2 {
    font-size: 28px;
  }
  
  .header-container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .register-card {
    padding: 24px 20px;
    border-radius: 12px;
  }
  
  .register-header h2 {
    font-size: 24px;
  }
  
  .form-group input {
    padding: 14px 14px 14px 48px;
    font-size: 16px;
  }
  
  .input-icon {
    left: 14px;
    width: 18px;
    height: 18px;
  }
  
}
