﻿/* 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: #0366d6;
}

.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;
    background-color: #f3f3f3;
}*/

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
    border-top: 1px solid var(--border-card);
}


.card-body .row {
    margin-top: .9em !important;
}

    .card-body .row:first-of-type {
        margin-top: 0em !important;
    }

/*.card-footer {
    text-align: right;
    background-color: white;
}*/


:root {
    color-scheme: light dark;
    --bg-main: #f5f5f5;
    --bg-card: #ffffff;
    --text-main: #1f2933;
    --border-card: #dde1e7;
    --card-footer-bg: #f8f9fa; /* NEW */
    --card-footer-border: #dde1e7; /* NEW */

    --input-bg: #ffffff;
    --input-border: #ced4da;
    --input-text: #111827;
    --btn-primary-bg: #0d6efd;
    --btn-primary-text: #ffffff;
    --btn-outline-dark-border: #343a40;
    --btn-outline-dark-text: #343a40;
    --link-color: #0d6efd;
}


@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #050816;
        --bg-card: #0b1220;
        --text-main: #e5e7eb;
        --border-card: #1f2937;
        --card-footer-bg: #020617; /* NEW */
        --card-footer-border: #1f2937; /* NEW */

        --input-bg: #020617;
        --input-border: #334155;
        --input-text: #e5e7eb;
        --btn-primary-bg: #2563eb;
        --btn-primary-text: #f9fafb;
        --btn-outline-dark-border: #e5e7eb;
        --btn-outline-dark-text: #e5e7eb;
        --link-color: #60a5fa;
    }

    body {
        background-color: var(--bg-main);
    }

    .card {
        background-color: var(--bg-card);
        color: var(--text-main);
        border-color: var(--border-card);
    }

    .form-control {
        background-color: var(--input-bg);
        border-color: var(--input-border);
        color: var(--input-text);
    }
    /* you can keep the rest of your dark-mode overrides */
}

.navbar-top {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-card);
}
h4, h3, h5, h2, h1 {
    font-weight: lighter;
    color: var(--text-main);
}

/* Base layout (light + dark uses variables above) */
body {
    background-color: var(--bg-main);
}

.card {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-card);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.125) !important;
}

.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

.login-container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.login-left {
    width: 40%;
    min-width: 320px;
    max-width: 480px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-right img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        display: block;
    }

.quote-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
    background: rgba(0,0,0,0.35);
    font-size: clamp(1rem, 1.2vw + 0.8rem, 1.5rem);
    display: none;
}

.card {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-card);
}

.form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

    .form-control:focus {
        background-color: var(--input-bg);
        border-color: #0d6efd;
        color: var(--input-text);
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.btn-outline-primary {
    border-color: var(--btn-primary-bg);
    color: var(--btn-primary-bg);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        background-color: var(--btn-primary-bg);
        color: var(--btn-primary-text);
    }

.btn-outline-dark {
    border-color: var(--btn-outline-dark-border);
    color: var(--btn-outline-dark-text);
}

    .btn-outline-dark img {
        vertical-align: middle;
        margin-right: 0.5rem;
    }

a {
    color: var(--link-color);
}

    a:hover {
        text-decoration: underline;
    }

@media (max-width: 480px) {
    .login-left {
        width: 60%;
        min-width: 260px;
        padding: 1.5rem;
    }
}

.card-footer {
    background-color: var(--card-footer-bg);
    border-top: 1px solid var(--card-footer-border);
    color: var(--text-main);
    text-align: right;
}