﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

.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 #258cfb;
}

.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;
}

:root {
    --login-info-rgb: 3, 21, 45;
}

body {
    margin-bottom: 60px;
    background-image: url(/images/main.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin: 0;
}

.text-login-info {
    --bs-text-opacity: 1;
    color: rgba(var(--login-info-rgb), var(--bs-text-opacity)) !important;
}

.login-container {
    min-height: 100vh;
    width: 100%;
    background: url('/images/main.png') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--bs-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 3rem;
}

.align-logo {
    text-align: center;
    margin-bottom: 0px;
}

.align-text-logininfo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-error-alert {
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-submit {
    border: 0px;
    border-radius: 10px;
    color: #fff;
    text-shadow: 0 1px rgba(0,0,0,0.1);
    background-color: #03152D;
    padding: 12px 0;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-submit:hover {
    border: 0px;
    border-radius: 10px;
    color: #fff;
    text-shadow: 0 1px rgba(0,0,0,0.3);
    background-color: #03152D;
}
.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 500px) {
    .login-error-alert {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

@media (orientation: landscape) {
    .login-container {
        background-image: url('/images/main-landscape.png');
        justify-content: flex-start;
        padding-top: 5vh;
        height: auto;
        min-height: 100vh;
        padding-bottom: 2rem;
    }
}

@media (max-width: 350px) {
    .login-container .h4 {
        font-size: 1.2rem !important;
    }

    .login-container p.small {
        font-size: 0.8rem !important;
    }

    .login-error-alert {
        padding: 0.375rem 0.7rem;
        font-size: 0.68rem;
        margin-bottom: 0.65rem;
    }
}
