html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom styles for RecrutaFácil */
.hero-section {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-radius: 0 0 20px 20px;
}

.hero-image i {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.feature-icon {
  transition: transform 0.3s ease;
}

.card:hover .feature-icon {
  transform: scale(1.1);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }

  .hero-section .d-flex {
    flex-direction: column;
    gap: 1rem !important;
  }

  .hero-section .btn {
    width: 100%;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .display-6 {
    font-size: 1.75rem;
  }
}

/* Authentication pages styles */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-card {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
}

.auth-card .card-body {
  padding: 3rem;
}

.form-control-lg {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control-lg:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-lg {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert {
  border-radius: 10px;
  border: none;
}

.text-primary {
  color: #007bff !important;
}

.text-success {
  color: #198754 !important;
}

.text-info {
  color: #0dcaf0 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-danger {
  color: #dc3545 !important;
}

/* Radio button styling */
.form-check-input[type="radio"] {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.1em;
}

.form-check-label {
  cursor: pointer;
  padding-left: 0.5rem;
}

/* Demo account styling */
.card.border-info {
  border-color: #0dcaf0 !important;
}

.card.border-success {
  border-color: #198754 !important;
}

.card.border-warning {
  border-color: #ffc107 !important;
}

/* Benefits cards */
.benefits-card {
  transition: transform 0.3s ease;
}

.benefits-card:hover {
  transform: translateY(-5px);
}

/* Input group styling */
.input-group .btn-outline-secondary {
  border-color: #e9ecef;
  color: #6c757d;
}

.input-group .btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Phone input styling */
input[type="tel"] {
  font-family: monospace;
}

/* Animation for form elements */
.form-control,
.btn,
.form-check-input {
  transition: all 0.3s ease;
}

/* Loading state */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Register page specific styles */
.register-form {
  max-width: 100%;
}

.register-form .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.register-form .col-md-6 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Benefits cards responsive */
.benefits-card {
  margin-bottom: 1rem;
}

.benefits-card .card-body {
  padding: 1rem;
}

/* Radio buttons styling */
.form-check {
  margin-bottom: 0.5rem;
}

.form-check-label {
  padding-left: 0.5rem;
  cursor: pointer;
}

/* Mobile adjustments for register page */
@media (max-width: 768px) {
  .auth-card .card-body {
    padding: 2rem 1.5rem;
  }

  .register-form .row {
    margin-left: 0;
    margin-right: 0;
  }

  .register-form .col-md-6 {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .benefits-card .card-body {
    padding: 1rem 0.75rem;
  }

  .benefits-card .fa-2x {
    font-size: 1.5em !important;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .auth-card .card-body {
    padding: 2.5rem;
  }
}

form .form-control {
  border-radius: 8px;
}

form .btn {
  border-radius: 8px;
}

@media (max-width: 768px) {
  form .row.g-2 {
    flex-direction: column;
  }

  form .col-md-1 {
    width: 100%;
  }
}
