﻿/* Variables */
:root {
    --primary-main: #0497bb;
    --secondary-main: #616161;
    --accent-color: #fdba3d;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --background-light: #e8e8e8;
    --text-danger: #d32f2f;
    --border-radius: 0.25rem;
    --font-feature-settings: "liga" off, "clig" off;
    --spacing-1: 0.5rem;
    --spacing-2: 1rem;
    --spacing-3: 1.5rem;
    --spacing-4: 2rem;
}

/* General Styles */
body {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    height: 100vh;
    min-height: fit-content;
    position: relative;
    justify-content: center;
}
.container {
    margin-bottom: 50px;
    margin-top: 50px;
}

.modal-like-container {
    margin: auto;
    max-width: 444px;
}

/* Typography */
h1,
h2,
h3,
.body1,
.body2,
.subtitle2 {
    font-family: "Roboto", sans-serif;
    color: var(--text-primary);
    font-feature-settings: var(--font-feature-settings);
    line-height: normal;
}

h1 {
    font-size: 1.5rem;
    font-weight: 400;
}

h2 {
    font-size: 1.25rem;
    font-weight: 400;
}

h3 {
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
}

h4 {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
}

h5 {
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
}

h6 {
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 400;
}

.body1,
.modal-body p {
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
}

.body2 {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 143%;
    letter-spacing: 0.01063rem;
}

.subtitle2 {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 157%;
    letter-spacing: 0.00625rem;
    color: var(--text-secondary);
}

.text-danger {
    color: var(--text-danger);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 166%;
    letter-spacing: 0.025rem;
}

.text-forgot-password-link {
    font-weight: 400;
    font-size: 0.875rem;
    font-style: normal;
    line-height: 143%;
    letter-spacing: 0.01063rem;
    text-align: center;
    width: 100%;
}

.validation-summary-errors {
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    font-feature-settings: var(--font-feature-settings);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 2.25rem;
    letter-spacing: 0.02875rem;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    background: var(--primary-main);
    color: white;
    height: 40px;
    border: none;
}

.btn-primary:hover,
.btn-primary:active {
    background: #037a99 !important;
}

.btn:disabled {
    background: rgba(0, 0, 0, 0.12) !important;
    color: rgba(0, 0, 0, 0.38);
}

.help-button {
    font-feature-settings: var(--font-feature-settings);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    background-color: var(--primary-main);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    border: none;
}

.help-button-text {
    display: block;
    position: absolute;
    width: 25px;
    height: 25px;
    margin: auto;
    text-align: center;
    left: 0px;
    top: -5px;
    font-size: 23px;
    font-weight: 300;
    color: white;
}

.help-button-text:hover {
    text-decoration: none;
}

/* App Bars */
.app-bar,
.app-bar-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 56px;
}

.app-bar {
    position: absolute;
    width: 100%;
    top: 0;
}

.app-bar-bottom {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.nexius-navbar-links {
    display: flex;
    gap: var(--spacing-3);
    text-transform: uppercase;
    font-feature-settings: var(--font-feature-settings);
    font-size: 0.875rem;
    font-weight: 500;
    align-items: center;
    letter-spacing: 0.46px;
}

.nexius-navbar-links a {
    color: white;
    text-decoration: none;
}

.nexius-navbar,
.nexius-navbar-bottom {
    display: flex;
    position: absolute;
    height: 100%;
    left: 0;
    right: 0;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nexius-navbar {
    top: 0;
    justify-content: flex-start;
    background: var(--primary-main);
}

.nexius-navbar-bottom {
    bottom: 0;
    justify-content: space-between;
    background: var(--secondary-main);
}

.nexius-logo {
    width: 96px;
    height: 24px;
}

/* Borders */
.horizontal-border {
    width: 100%;
    border-top: 5px solid var(--accent-color);
}

/* Links */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-word;
}

a {
    color: var(--primary-main);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

.form-control {
    background-color: var(--background-light) !important;
    border-bottom: 1px solid !important;
    border-radius: 5px 5px 0px 0px !important;
}

.form-group-container {
    display: flex;
    padding: var(--spacing-2);
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-3);
    flex: 1 0 0;
}

/* Modals */
.modal-title {
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.modal-dialog {
    max-width: 600px;
}

.modal-header,
.modal-footer {
    border: none;
    padding: var(--spacing-2) var(--spacing-3);
}

.modal-body {
    padding: 0 var(--spacing-3) var(--spacing-2);
}

.modal-body h2 {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.modal-content {
    border-radius: 4px;
    border: none;
}

/* Elavated card */
.elavated-card {
    border-radius: var(--border-radius);
    border: 1px solid var(--background-light);
    box-shadow: 1px 0px 1px 0px var(--background-light);
    margin: auto;
    display: flex;
    padding: var(--spacing-4);
    flex-direction: column;
    min-height: 37.5rem;
    max-width: 37.5rem;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

/* Images */
.img-group-wrapper {
    display: flex;
    padding: var(--spacing-3) 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-1);
    align-self: stretch;
}

#login-logo-img {
    width: 7.5rem;
    height: 7.5rem;
    aspect-ratio: 1/1;
}

/* Subtitles */
.subtitle-wrapper {
    display: flex;
    padding: var(--spacing-2);
    align-items: center;
    align-self: stretch;
    justify-content: space-between;
}

/* Validation */
.validation-summary-errors ul {
    list-style-type: none;
    padding-left: 0;
}

/* Toggles */
.toggle-password-btn {
    display: contents;
}

.toggle-svg {
    height: 24px;
    width: 24px;
    position: absolute;
    right: 18px;
    top: 18px;
}

/* Navigation Pills */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Responsive Design */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
