/* Silicon Theme Authentication Styles */

/* Password toggle functionality */
.password-toggle {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  margin-top: -0.75rem;
  z-index: 10;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.password-toggle-check {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.password-toggle-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: #9ca3af;
  text-align: center;
  transition: color 0.15s ease-in-out;
}

.password-toggle-indicator::before {
  content: "\1F441"; /* Eye emoji */
  font-family: Arial, sans-serif;
}

.password-toggle-check:checked ~ .password-toggle-indicator::before {
  content: "\1F648"; /* See-no-evil monkey emoji */
}

.password-toggle-btn:hover .password-toggle-indicator {
  color: #6b7280;
}

/* Social login button styles */
.btn-google {
  border-color: #db4437;
  color: #db4437;
}

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

.btn-github {
  border-color: #333;
  color: #333;
}

.btn-github:hover {
  background-color: #333;
  border-color: #333;
  color: white;
}

/* Primary button with shadow */
.shadow-primary {
  box-shadow: 0 0.375rem 1.5rem rgba(99, 102, 241, 0.4);
}

.btn-primary:hover.shadow-primary {
  box-shadow: 0 0.5rem 2rem rgba(99, 102, 241, 0.5);
}

/* Large form controls */
.form-control-lg {
  min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
  padding: 0.5rem 0.75rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
}

/* Form validation styles */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #198754;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.4-.4 1.4-1.4L7.07 2l.4-.4L6.6.7l-.4.4L3.64 3.64 1.96 1.96 1.56 1.56.7 2.42l.4.4 1.2 1.2.01.01z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4-2.4 2.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Invalid feedback positioning */
.invalid-feedback {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

/* Auth page specific styles */
.auth-page {
  min-height: 100vh;
}

/* Form styling */
.needs-validation .form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button icon spacing */
.btn-icon i {
  margin-right: 0.5rem;
}

/* Responsive text alignment */
@media (max-width: 1199.98px) {
  .text-xl-start {
    text-align: center !important;
  }
}

@media (min-width: 1200px) {
  .text-xl-start {
    text-align: start !important;
  }
}

/* JavaScript for password toggle */
.password-toggle-js {
  cursor: pointer;
}

/* Boxicons fallback */
.bx:before {
  font-family: 'boxicons';
}

/* Fallback for missing boxicons */
.bxl-google:before {
  content: "G";
  font-weight: bold;
  color: #db4437;
}

.bxl-github:before {
  content: "GH";
  font-weight: bold;
  color: #333;
}

/* Better button styling when boxicons are missing */
.btn-secondary.btn-google,
.btn-secondary.btn-github {
  font-weight: 500;
  letter-spacing: 0.025em;
} 