/* Root definitions for consistent theming */
:root {
    --primary-color: #283583;
    --secondary-color: #68dfa3;
    --error-color: #fd636e;
    --danger-color: #ff0000;
    --warning-color: #fdcb00;
    --info-color: #00bfff;
    --border-color: #ccc;
    --border-radius: 4px;
    --transition-speed: 0.3s;
    --font-main: "Roboto Condensed", sans-serif;
    --background-light: #f5f5f5;
    --background-input-focus: #e9e9e9;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
  }

  /* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }

/* Base styles */
html, body {
    margin: 0;
    height: 100%;
    background-color: #ffffff;
    font-family: var(--font-main);
    font-size: 16px;
}

body {
    /* display: flex;
    align-items: center;
    justify-content: center; */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera, and Edge */
}

/* Main layout containers */
.octolo-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.octolo-panel, .octolo-login-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.octolo-panel {
    background-color: var(--primary-color);
    width: 350px;
}

.octolo-panel a {
    display: flex;
    justify-content: center;
}

.octolo-login-content {
    flex-grow: 1;
    background-color: #ffffff;
}

.octolo-panel-svg {
    height: 200px;
}

/* Content styles */
h1, p {
    color: var(--primary-color);
}

h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

h2 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header-container *{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content
}

input {
    font-size: medium;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
    box-sizing: none;
}

input:focus {
    background-color: var(--background-input-focus);
}

.input-container {
    display: flex;
    align-items: center;
}

.input-error {
    border: 2px solid red !important;
    outline: none;
}

/* Main container */
.fixed-container {
    width: 523px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Message styling */
.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

.success-message, .error-message {
    color: #fff;
}

.success-message {
    background-color: var(--secondary-color);
}

.error-message {
    background-color: var(--error-color);
}

.warning-message {
    background-color: var(--warning-color);
}

.info-message {
    color: var(--primary-color);
    background-color: #a1abe1;
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* align-items: baseline */
}

.header-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.step {
    color: var(--secondary-color);
    text-wrap: nowrap;
}

.dash {
    width: 25px;
    height: 5px;
    background-color: var(--primary-color);
    border: none;
    margin: 0;
}

/* Buttons layout */
.buttons {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Align one set to the left and the other to the right */
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.left, .right {
    display: flex;
    flex-direction: row;
}

.center {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-self: center;
}

/* Base button styling */
.button-login, a.button-login, button.button-login {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-direction: column; */
    padding: 10px 15px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    margin: 0 2.5px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    border-radius: var(--border-radius);
    border: none;
    transition: background-color var(--transition-speed);
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.button-login.button-img {
    padding: 3px; /* This will now override the padding from .button */
    margin-left: 0px;
    margin-right: 5px;
    height: 40px;
    width: 40px;
    vertical-align: middle;
}

.button-login img {
    max-height: 100%; /* ensures image height does not exceed the button height */
    max-width: 100%; /* ensures image width does not exceed the button width */
    height: auto; /* maintains the aspect ratio of the image */
    vertical-align: middle; /* aligns the image vertically within the button */
}

/* Button states */
.button-login:hover,
.button-login:focus {
    opacity: 0.8;
}

/* Modifier classes for button variants */
.button-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.button-danger {
    background-color: var(--danger-color);
    color: #fff;
}

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

.provider {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive */
@media only screen and (max-width: 1200px) {
    .octolo-login {
        flex-direction: column;
    }
    .octolo-panel {
        width: 100%;
        height: 20%;
    }
    .octolo-panel-svg {
        height: 10vh;
    }
}

@media screen and (max-width: 523px) {
    .octolo-login {
        width: auto;
    }
    .header-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }
    .header-container * {
        margin: 0;
    }
    .header-container *:not(:first-child) {
        margin-bottom: 10px;
    }
    .fixed-container {
        width: 100vw;
        height: 100%;
        overflow: scroll;
    }
    .buttons {
        flex-direction: column-reverse;
        align-items: center;
    }
    .button-login {
        width: 100%;
    }
    .left, .right {
        flex-direction: column-reverse;
        justify-content: space-around;
        width: 100%;
    }
    .left a, .left button, .right a, .right button {
        margin: 5px 0;
    }
    .input-container a {
        margin-left: 5px;
    }
}

@media only screen and (max-height: 670px) {
    .fixed-container {
        padding: 20px;
        border: 0px;
        box-shadow: none;
        height: 100%;
        overflow: scroll;
    }
}

