/* Modern Auth Pages Styles - 2024 */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --dark-bg: #111827;
  --light-bg: #f9fafb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
}

/* Base styles */
body {
  background-color: var(--light-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  height: 100vh;
  margin: 0;
}

.page {
  display: flex;
  min-height: 100vh;
}

.page-center {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Auth Container Styles */
.auth-container {
  width: 100%;
  max-width: 520px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* Branding */
.auth-logo {
  text-align: center;
  margin: 1rem;
}

.auth-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.05);
}

/* Card */
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

/* Card Header with Shapes */
.auth-card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-card-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Decorative shapes */
.shape-1, .shape-2, .shape-3 {
  position: absolute;
  border-radius: var(--radius-full);
  z-index: 0;
}

.shape-1 {
  width: 160px;
  height: 160px;
  background-color: rgba(255, 255, 255, 0.1);
  top: -80px;
  left: -60px;
  border-radius: var(--radius-full);
}

.shape-2 {
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.15);
  bottom: -60px;
  right: -20px;
  border-radius: var(--radius-full);
}

.shape-3 {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  bottom: 30px;
  left: 40px;
  border-radius: var(--radius-full);
}

/* Card Body */
.auth-card-body {
  padding: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  height: 3.25rem;
  padding: 0 1rem;
  font-size: 0.95rem;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

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

/* Icon Input */
.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1rem;
  color: var(--text-light);
}

.input-with-icon {
  padding-left: 2.75rem;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--primary-color);
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  user-select: none;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  cursor: pointer;
  appearance: none;
  background-color: white;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3e%3cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0z' clip-rule='evenodd'/%3e%3c/svg%3e");
  background-size: 0.75rem;
  background-position: center;
  background-repeat: no-repeat;
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--text-light);
  cursor: pointer;
}

/* Links */
.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  height: 3rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
}

.btn i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

/* Animated Hover Effect on Button */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-hover);
  z-index: -2;
}

.btn-primary:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-primary:hover:before {
  width: 100%;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.auth-divider:before, .auth-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.auth-divider:before {
  margin-right: 0.75rem;
}

.auth-divider:after {
  margin-left: 0.75rem;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* SweetAlert2 Customization */
.swal2-popup {
  font-family: 'Inter', sans-serif !important;
  border-radius: var(--radius-lg) !important;
  padding: 2rem !important;
}

.swal2-title {
  font-weight: 600 !important;
  color: var(--text-dark) !important;
}

.swal2-html-container {
  font-size: 0.95rem !important;
  margin-top: 1rem !important;
  color: var(--text-light) !important;
}

.swal2-styled.swal2-confirm {
  background-color: var(--primary-color) !important;
  font-weight: 500 !important;
  border-radius: var(--radius) !important;
  padding: 0.625rem 1.25rem !important;
}

.swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4) !important;
}

.swal2-icon {
  border-width: 3px !important;
}

.swal2-icon.swal2-success {
  border-color: var(--success-color) !important;
  color: var(--success-color) !important;
}

.swal2-icon.swal2-error {
  border-color: var(--danger-color) !important;
  color: var(--danger-color) !important;
}

.swal2-icon.swal2-warning {
  border-color: var(--warning-color) !important;
  color: var(--warning-color) !important;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .auth-card-header {
    padding: 1.5rem;
  }
  
  .auth-card-body {
    padding: 1.5rem;
  }
  
  .form-control, .btn {
    height: 3rem;
  }
}

/* Utility Classes */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.5rem !important; }
.mt-6 { margin-top: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.mb-6 { margin-bottom: 2rem !important; }

.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; } 