@import "fonts.css";
@import "colors.css";

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--main-bg);
}

.main-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 0.4fr 1.6fr;
    gap: 0px 0px;
    height: 80vh;
    width: 60vw;
    min-width: 360px;
    margin: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 360px;
    align-self: center;
}

.header-logo {
    width: 250px;
    transition: all 0.15s ease-in-out;
}

.header-logo:hover {
    cursor: pointer;
    transform: scale(1.05); 
}

.auth-container {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-self: center;
    justify-content: center;
    align-items: center;
    gap: 50px;
    width: 100%;
    min-width: 360px;
    max-width: 520px;
}

.auth-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.auth-title {
    font-size: 32px;
    color: var(--color-secondary);
    text-align: center;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 8px;
    flex-direction: row;
    padding: 20px;
    background-color: var(--color-primary);
    transition: all 0.15s ease-in-out;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    min-width: 300px;
    -webkit-user-select: none;
    user-select: none;
}

.lang-sel-header{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    min-width: 100px;
    user-select: none;
}

.lang-sel-label{
    font-size: 18px;
    color: var(--color-secondary);
}

.lang-sel-dropdown {
    display: none;
    min-width: 100px;
    flex-direction: column;
    position: absolute;
    background-color: var(--color-primary);
    border-radius: 8px;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease-in-out;
    text-align: center;
}

.lang-option{
    width: 100%;
    padding: 10px 0px;
    text-decoration: none;
    color: var(--color-secondary);
    transition: all 0.15s ease-in-out;
}

.lang-option:first-child{
    border-radius: 8px 8px 0px 0px;
}

.lang-option:last-child{
    border-radius: 0px 0px 8px 8px;
}

.lang-option:hover{
    background-color: var(--color-hover);
}

.lang-option-divider{
    width: 100%;
    height: 1px;
    background-color: var(--color-secondary);
    opacity: 0.5;
}

.show {
    display: flex;
    transition: all 0.15s ease-in-out;
}

.lang-sel-arrow{
    height: 24px;
    transition: all 0.15s ease-in-out;
}

.flip{
    transform: rotateX(180deg);
    transition: all 0.15s ease-in-out;
}

.lang-sel{
    appearance: none;
    -webkit-appearance: none;
    font-size: 18px;
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button-title {
    font-size: 20px;
    opacity: 0;
    position: absolute;
    transition: all .2s ease-in-out;
}

.button-logo {
    height: 24px;
    filter: blur(0px);
    transition: all 0.15s ease-in-out;
}

.auth-button:hover {
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
}

.auth-button:active {
    transform: scale(1);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}

.auth-button:hover .button-title {
    opacity: 1;
}

.auth-button:hover .button-logo {
    opacity: 0.15;
    filter: blur(2px) grayscale(1);
}

.smart-id-popup-close{
    position: absolute;
    top: 10px;
    right: 10px;
    height: 32px;
    width: 32px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.smart-id-popup-close:hover{
    transform: scale(1.05);
}

.smart-id-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.smart-id-logo-1 {
    height: 48px;
}

.smart-id-logo-2 {
    height: 16px;
}

.mobile-id-logo {
    height: 48px;
}

.id-card-logo {
    height: 40px;
}

.blur {
    filter: blur(2px);
}

.show-smart-id-popup {
    display: grid !important;
}

.smart-id-popup-container {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    grid-template-columns: 1fr; 
    grid-template-rows: 0.6fr 1.7fr 0.7fr; 
    gap: 0px 0px; 
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 420px;
    height: 420px;
    background-color: var(--color-primary);
    border-radius: 8px;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.2);
}

.popup-logo{
    align-self: end; 
    grid-area: 1 / 1 / 2 / 2; 
}

.smart-id-popup-input-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 45px;
    margin: 0px 20px;
}

.smart-id-popup-text{
    font-size: 20px;
    text-align: center;
}

.smart-id-popup-input{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 420px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.212);
}

.smart-id-popup-input:focus{
    outline: none;
    border: none;
    border-bottom: 1px solid var(--color-secondary);
}

.smart-id-popup-button{
    display: inline-block;
    border-radius: 4px;
    flex-direction: row;
    padding: 10px 15px;
    background-color: var(--color-button);
    color: var(--color-primary);
    transition: all 0.15s ease-in-out;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.2);
    -webkit-user-select: none;
    user-select: none;
    grid-area: 3 / 1 / 4 / 2;
    align-self: flex-start;
}

.smart-id-popup-button:hover {
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
}

.smart-id-popup-button:active {
    transform: scale(1);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}

.smart-id-popup-background-close{
    position: absolute;
    display: none;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: gray;
    opacity: 0.5;
}

@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: row;
        gap: 0px;
        align-items: center;
        height: auto;
    }

    .header-logo{
        width: 180px;
    }
}

@media screen and (max-width: 480px) {
    .smart-id-popup-container {
        height: 100%;
        width: 100%;
        max-width: none;
        min-width: none;
        border-radius: 0px;
    }

    .auth-button {
        width: 50%;
        max-width: none;
        min-width: none;
        height: 48px;
    }

    .auth-title{
        margin: 0px 20px;
    }
}