﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0000EE !important; /* Traditional blue color for links */
    text-decoration: underline; /* Underlining to indicate it's clickable */
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
}

    .separator::before,
    .separator::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #95AAC9;
    }

    .separator:not(:empty)::before {
        margin-right: .25em;
    }

    .separator:not(:empty)::after {
        margin-left: .25em;
    }

/* Enhanced responsive design and mobile improvements */
@media (max-width: 767.98px) {
    /* Mobile-specific adjustments */
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .mb-6 {
        margin-bottom: 2rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    /* Improve touch targets on mobile */
    .btn {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-control, .form-floating > .form-control {
        min-height: 56px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-floating > label {
        font-size: 16px;
    }
    
    /* Better spacing for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mb-6 {
        margin-bottom: 3rem !important;
    }
}

/* Large screens */
@media (min-width: 992px) {
    .mb-6 {
        margin-bottom: 4rem !important;
    }
}

/* Enhanced form styling */
.form-floating {
    position: relative;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(.15rem);
}

.form-floating > label {
    transition: all 0.1s ease-in-out;
}

/* Social login button enhancements */
.btn-outline-dark {
    transition: all 0.2s ease-in-out;
    border-width: 1px;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading button state */
.btn:disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Form validation states */
.form-control.is-valid {
    border-color: #28a745;
    background-image: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.invalid-feedback {
    display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* Enhanced primary button */
.btn-primary {
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(27, 110, 194, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(27, 110, 194, 0.25);
}

/* Text enhancements */
.text-primary {
    color: #2C7BE5 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

/* Image responsiveness */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Better link styles */
a.text-decoration-none:hover {
    text-decoration: underline !important;
}

/* Enhanced spacing utilities */
.mb-6 {
    margin-bottom: 3.5rem !important;
}

/* Better form group spacing */
.form-floating + .form-floating {
    margin-top: 1rem;
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .form-control {
        font-size: 16px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid;
    }
    
    .form-control {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn, .form-control, .btn-outline-dark {
        transition: none;
    }
}