:root {
    --keyboard-height: 0px;
}

body {
    height: calc(100svh - var(--keyboard-height));
}

.login-methods {
    margin-top: 20px;
}

.login-method-btn {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.login-method-btn:hover:not(.disabled) {
    background-color: #3a3a3a;
}

.login-method-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #444;
    border-radius: 8px;
}

.login-method-text h3 {
    margin: 0;
}

/* General styling */
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mt-20 {
    margin-top: 20px;
}

/* General button styling */
button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #0078d4;
    color: white;
    font-weight: bold;
}

button.cancelbtn {
    background-color: #555;
}

button:hover {
    opacity: 0.9;
}

/* General form data styling */
.datas {
    margin-bottom: 20px;
}

.datas label {
    display: block;
    margin-bottom: 8px;
}

.datas input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #e8eaed;
    border-radius: 4px;
}

/* General buttons container */
.buttons {
    display: flex;
    justify-content: space-between;
}

/* General error message styling */
#error-msg {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.small-container {
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(30, 30, 30);
    width: min(600px, 100%);
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.small-container > h1 {
    margin: 0px;
    margin-bottom: 15px;
}

.small-container > .datas {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.small-container > .datas > label {
    margin-top: 7px;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.small-container > .datas > label > p {
    margin-top: 5px;
    font-size: 14px;
}

.small-container > .datas > input {
    margin: 5px 0px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgb(40, 40, 40);
    color: white;
    font-size: 16px;
    height: unset;
    border: 2px solid transparent;
    width: 100%;
    margin-bottom: 15px;
}

.small-container > .datas > input[disabled] {
    background-color: rgb(114, 114, 114);
    cursor: not-allowed;
}

.small-container > .datas > input:focus {
    outline: none;
    border: 2px solid rgb(0, 114, 204);
}

.small-container > .datas > input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgb(45, 45, 45) inset;
    -webkit-text-fill-color: rgb(255, 255, 255);
}

.small-container > .buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
}

.small-container > .buttons > button {
    padding: 9px 25px;
    border: none;
    border-radius: 5px;
    background-color: rgb(0, 114, 204);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.small-container > .buttons > button:nth-child(1)[disabled] {
    background-color: rgb(110, 110, 110);
    cursor: not-allowed;
    color: rgb(148, 148, 148);
}

.small-container > .buttons > button:nth-child(2) {
    background-color: rgb(81, 81, 81);
}

.small-container > .buttons > button:hover {
    background-color: rgb(0, 100, 180);
    opacity: 0.9;
}

.small-container > .buttons > button:nth-child(2):hover {
    background-color: rgb(61, 61, 61);
}

.small-container > .buttons > button:active {
    transform: scale(0.95);
}

.small-container > #error-msg {
    display: block;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgb(255, 0, 0);
    background-color: rgba(255, 48, 25, 0.318);
    color: white;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
}

.small-container > #error-msg:not(:has(p)) {
    display: none !important;
}

.small-container > #error-msg > p {
    margin: 0px;
    font-size: medium;
}


.application-container {
    height: 150px;
    max-height: 0px;
    transition: .3s all;
    overflow: hidden;
    padding: 0px 10px;
    width: 100%;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 30% 70%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
}

.application-form .application-container {
    max-height: 200px;
}

.applicationProfile {
    width: 90px;
    max-width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #DFDBE5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M11 0l5 20H6l5-20zm42 31a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM0 72h40v4H0v-4zm0-8h31v4H0v-4zm20-16h20v4H20v-4zM0 56h40v4H0v-4zm63-25a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM53 41a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-30 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-28-8a5 5 0 0 0-10 0h10zm10 0a5 5 0 0 1-10 0h10zM56 5a5 5 0 0 0-10 0h10zm10 0a5 5 0 0 1-10 0h10zm-3 46a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM21 0l5 20H16l5-20zm43 64v-4h-4v4h-4v4h4v4h4v-4h4v-4h-4zM36 13h4v4h-4v-4zm4 4h4v4h-4v-4zm-4 4h4v4h-4v-4zm8-8h4v4h-4v-4z'/%3E%3C/g%3E%3C/svg%3E");
}

.application-infos {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-evenly;
}

.application-infos > * {
    margin: 0px;
}

.application-infos h1.application-text {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: #aaa;
}

.application-infos h2.application-name {
    font-size: 1.25rem;
    margin: 0 0 5px 0;
}

.application-name {
    background-color: #303030;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: fit-content;
    line-break: normal;
    text-align: right;
    padding: 10px 17px;
    font-weight: 400;
    font-size: 17px;
}

.application-infos a.application-home,
.application-home {
    font-size: 13px;
    text-decoration: none;
    color: lightblue;
}

.application-infos a.application-home:hover,
.application-home:hover {
    text-decoration: underline;
}