/* Login Page CSS - Self-contained styling for login forms only */
/* This file should contain ONLY what's needed for login to avoid revealing application structure */

/* Global styling for login page */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Container for full page centering */
.container-fluid {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

/* Bootstrap utility classes needed for login */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
    max-width: 650px;
    justify-content: center;
}

.col-md-6, .col-lg-5, .col-xl-4 {
    flex: 0 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.justify-content-center {
    justify-content: center !important;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }
}

@media (min-width: 1200px) {
    .col-xl-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

/* Card components */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
}

.card-header {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem 1.5rem;
}

/* Login-specific card styling */
.login-card {
    min-width: 585px;
    max-width: 650px;
    max-height: 80vh;
    overflow: visible;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .login-card {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .login-card {
        min-width: 280px;
        margin: 0 auto;
    }
}

/* Form styling */
.login-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: none;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #dca53c;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(220, 165, 60, 0.25);
    transform: translateY(-1px);
}

/* Input groups */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    min-width: 200px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    transform: translateY(-1px);
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    border-color: #dca53c;
    background-color: rgba(220, 165, 60, 0.1);
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group > .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-fbs {
    background-color: #dca53c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-fbs:hover {
    background-color: #c4942f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

.btn-fbs.btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Grid system */
.d-grid {
    display: grid !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

/* Flexbox utilities */
.d-flex {
    display: flex !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

/* Text utilities */
.text-center {
    text-align: center !important;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-success {
    color: #198754 !important;
}

/* Margin and padding utilities */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

/* Form check */
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-left: -1.5em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0.25em;
}

.form-check-label {
    margin-bottom: 0;
}

/* Alerts */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Lists */
ul {
    padding-left: 2rem;
}

li {
    display: list-item;
    text-align: -webkit-match-parent;
}

/* Card header background */
.card-header.bg-fbs {
    background-color: #ffffff !important;
    color: white;
}

.bg {
    background-color: #ffffff !important;
}

/* Typography */
h4, h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h4 {
    font-size: calc(1.275rem + 0.3vw);
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

small {
    font-size: 0.875em;
}

/* Border utilities */
.border-top {
    border-top: 1px solid #dee2e6 !important;
}

/* FontAwesome icon placeholder - basic styling for icons */
.fas {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-3x {
    font-size: 3em;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .login-card {
        margin: 0;
        min-width: auto;
        max-height: 85vh;
        max-width: 95vw;
    }
    
    .form-control, .input-group {
        min-width: auto;
    }
    
    .card-body {
        padding: 1rem 1rem;
    }
    
    .card-header {
        padding: 0.5rem 1rem;
    }
    
    .container-fluid {
        padding: 0;
        margin: 0;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    .row {
        margin: 0;
        padding: 0;
    }
    
    .col-md-6, .col-lg-5, .col-xl-4 {
        padding: 0;
        margin: 0;
    }
}

/* Spinner styling - positioned at top center of viewport */
.spinner {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 9999;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.text-primary {
    color: #dca53c !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
