/* OneShare Identity - Custom Styles */

/* Base Typography */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

/* Enhanced Form Styles */
.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 Focus States */
.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 #0056D2;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Enhanced Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, #0056D2 0%, #004299 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 86, 210, 0.2);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #004299 0%, #003175 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 86, 210, 0.3);
}

.btn-secondary-custom {
  background: white;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Input Fields Enhancement */
.form-control-custom {
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.95);
}

.form-control-custom:focus {
  outline: none;
  border-color: #0056D2;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
  background: white;
}

.form-control-custom::placeholder {
  color: #94a3b8;
}

/* Label Styles */
.form-label-custom {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.5rem;
  display: block;
}

/* Alert/Validation Messages */
.alert-custom {
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert-danger-custom {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

.alert-success-custom {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.alert-info-custom {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
  color: #075985;
}

/* Divider with Text */
.divider-custom {
  display: flex;
  align-items: center;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.divider-custom::before,
.divider-custom::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider-custom::before {
  margin-right: 1rem;
}

.divider-custom::after {
  margin-left: 1rem;
}

/* Link Styles */
.link-primary-custom {
  color: #0056D2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.link-primary-custom:hover {
  color: #004299;
  text-decoration: underline;
}

.link-primary-custom:active {
  color: #003175;
}

/* Checkbox Custom */
.checkbox-custom {
  accent-color: #0056D2;
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

/* Page Container */
.page-container {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Card Header */
.card-header-custom {
  text-align: center;
  margin-bottom: 2rem;
}

.card-header-custom h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.card-header-custom p {
  color: #64748b;
  font-size: 0.9375rem;
}

/* Smooth Transitions */
*:not(a) {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Ensure all links are properly interactive */
a {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a:not([class]) {
  color: #0056D2;
  text-decoration: underline;
}

a:not([class]):hover {
  color: #004299;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Utilities */
@media (max-width: 640px) {
  .glass-card {
    border-radius: 1rem;
  }

  .card-header-custom h1 {
    font-size: 1.5rem;
  }
}