/* Register Page Styles */

/* Main Container */
.register-main {
  background-color: #ffffff !important;
  min-height: calc(100vh - 200px);
}

/* Form Group Styling */
.form-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151 !important;
  margin-bottom: 0.5rem;
}

/* Relative Container */
.form-group .relative {
  position: relative;
  display: flex;
}

/* Form Input Styling */
.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem;
  padding-left: 2.5rem !important;
  padding-right: 2.75rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background-color: #ffffff !important;
  color: #111827 !important;
  font-family: 'Roboto', sans-serif;
  height: 3rem;
}

.form-input::placeholder {
  color: #9ca3af;
}

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

.form-input.error {
  border-color: #dc2626;
  background-color: #fee2e2 !important;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form Icon Styling */
.form-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  pointer-events: none;
  transition: color 0.2s ease;
  line-height: 0;
  display: flex;
  align-items: center;
}

.form-input:focus ~ .form-icon,
.form-input:not(:placeholder-shown) ~ .form-icon {
  color: #6b7280;
}

/* Toggle Password Button */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #9ca3af;
  transition: color 0.2s ease;
  line-height: 0;
}

.toggle-password:hover {
  color: #374151 !important;
}

.toggle-password svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Form Error Message */
.form-error {
  font-size: 0.75rem;
  color: #dc2626 !important;
  margin-top: 0.25rem;
  animation: slideDown 0.2s ease-out;
}

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

/* Form Submit Button */
button[type="submit"] {
  position: relative;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #ef4444;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

button[type="submit"]:hover {
  background-color: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

button[type="submit"]:active {
  transform: translateY(0);
}

button[type="submit"]:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Form Container Styling */
.register-main .max-w-md {
  background-color: #ffffff !important;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Header */
.register-main .bg-gradient-to-r {
  background: linear-gradient(to right, #fef2f2, #fee2e2) !important;
}

.register-main .bg-gradient-to-r h1 {
  color: #111827 !important;
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.register-main .bg-gradient-to-r p {
  color: #6b7280 !important;
}

/* Form Footer */
.register-main .bg-gray-50 {
  background-color: #f9fafb !important;
  border-top: 1px solid #d1d5db;
}

.register-main .bg-gray-50 a {
  color: #ef4444 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.register-main .bg-gray-50 a:hover {
  color: #dc2626 !important;
  text-decoration: underline;
}

/* Text Colors */
.register-main .text-gray-600 {
  color: #4b5563 !important;
}

.register-main .text-gray-700 {
  color: #374151 !important;
}

.register-main .text-gray-900 {
  color: #111827 !important;
}

.register-main .text-red-600 {
  color: #dc2626 !important;
}

/* Responsive Design */
@media (max-width: 767px) {
  .register-main {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .register-main .max-w-md {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0.5rem;
  }

  .register-main .bg-gradient-to-r h1 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .form-input {
    font-size: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .register-main .max-w-md {
    width: 100%;
    max-width: 28rem;
  }
}

@media (min-width: 1024px) {
  .register-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
  }

  .register-main .container {
    width: 100%;
  }

  .register-main .max-w-md {
    width: 100%;
    max-width: 28rem;
  }
}

/* Animation for form appearance */
.register-main .max-w-md {
  animation: fadeInUp 0.5s ease-out;
}

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

/* Focus visible for accessibility */
.form-input:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

button[type="submit"]:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Link focus states */
.register-main a:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
  border-radius: 0.25rem;
}
