﻿:root {
    --dss-message-success: #d1e7dd;
    --dss-message-success-border: #d1e7dd;
    --dss-message-success-text: #0a3622;
    --dss-message-warning: #fff3cd;
    --dss-message-warning-border: #ffeeba;
    --dss-message-warning-text: #856404;
    --dss-message-error: #f8d7da;
    --dss-message-error-border: #f5c6cb;
    --dss-message-error-text: #721c24;
}

.login-page {
    position: relative;
    height: 100vh;
    background-color: #000f550d;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: auto;
}

.login-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Login Frame */

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-header {
    margin: 5rem 1rem 0rem 1rem;
    text-align: center;
}

.login-subheader {
    margin: 1.5rem 2rem 0rem 2rem;
    max-width: 750px;
}

.login-subheader p {
    font-size: 18px;
    margin: 0;
}

.login-content {
    background: var(--dss-white);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 4rem 5rem;
    margin: 5.5rem auto;
    width: 600px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px;
}

.login-text {
    margin-top: 0.5rem;
    text-align: center;
}

.icon-container {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    background: var(--dss-white);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px;
    padding: 20px;
    border-radius: 100px;
}

.login-icon {
    width: 60px;
    height: 60px;
}

.login-input-status {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
}

.login-input-status.error {
    background-color: var(--dss-message-error);
    border: 1px solid var(--dss-message-error-border);
    color: var(--dss-message-error-text);
}

.login-input-status.success {
    background-color: var(--dss-message-success);
    border: 1px solid var(--dss-message-success-border);
    color: var(--dss-message-success-text);
}

.login-frame-container {
    flex-direction: column;
    width: 100%;
}

.login-frame-container.active {
    display: flex;
}

.login-frame-container.inactive {
    display: none;
}

.gap-large {
    gap: 1.5rem;
}

.gap-small {
    gap: 1rem;
}

.secure-login-form {
    width: 100%;
}

.secure-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: var(--dss-white);
    width: 100%;
}

.secure-login-button.dkmitid {
    background-color: #0060e6;
    border-color: #0060e6;
}

.secure-login-button.dkmitid:hover {
    background-color: #0050d5;
}

.secure-login-button.sebankid {
    background-color: #183E4F;
    border-color: #183E4F;
}

.secure-login-button.sebankid:hover {
    background-color: #072D3E;
}

.secure-login-icon {
    width: 55px;
    height: 55px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7494%) hue-rotate(78deg) brightness(108%) contrast(100%);
}

.secure-login-button-text {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
}

.button-separator {
    text-transform: uppercase;
    font-size: 20px;
    color: rgba(0,15,85,.3);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-separator::before, .button-separator::after {
    background-color: rgba(0,15,85,.3);
    height: 1px;
    content: '';
    width: 100%;
    display: inline-block;
}

.button-separator::before {
    margin-right: 10px;
}

.button-separator::after {
    margin-left: 10px;
}

.login-form-button {
    border-radius: 50px;
    width: 100%;
    padding: 0.5rem 1.5rem;
}

.login-method-warning {
    background-color: var(--dss-message-warning);
    border: 1px solid var(--dss-message-warning-border);
    color: var(--dss-message-warning-text);
    padding: 1rem 1.5rem;
    border-radius: 10px;
}

.input-icon {
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
}

.show-password {
    display: inline-block;
}

.hide-password {
    display: none;
}

.login-flex-form {
    display: flex;
    flex-direction: column;
}

.forgot-password-button {
    width: fit-content;
    align-self: center;
    border: none;
    background: var(--dss-white);
}

.forgot-password-button:hover {
    text-decoration: underline;
}

/* Product Selection Frame */
.product-container {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 1000px;
    margin: 0rem 2rem;
}

.product-header {
    margin-top: 6rem;
}

.product-subheader p {
    font-size: 18px;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 6rem;
}

.product-card {
    background: var(--dss-white);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    height: 100%;
    width: 100%;
    text-align: left;
    border: none;
    padding: 0;
}

.product-card:hover {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 6px 8px;
    transform: translateY(-3px);
}

.product-card hr {
    color: grey;
}

.product-title {
    padding: 1.5rem 2.5rem 0.25rem 2.5rem;
}

.product-body {
    padding: 0.25rem 2.5rem;
    height: 100%;
}

.product-company {
    margin: 0;
    font-style: italic;
    font-size: 14px;
}

.product-footer {
    padding: 0.25rem 2.5rem 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-activity {
    margin: 0;
    color: red;
    font-size: 14px;
}

.product-icon {
    width: 25px;
    height: 25px;
}


/* Language Selector */

.language-container {
    position: absolute;
    right: 0;
    margin: 1.5rem;
}

.language-selector .nav-item-icon {
    height: 25px;
}

.language-selector .dss-btn-language-selector {
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px;
}

.language-selector .dss-btn-language-selector:hover {
    background-color: white;
    border-color: var(--dss-blue);
}

.language-selector .lan-dropdown-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

.language-selector .lan-dropdown-content img {
    max-height: 20px;
}

/* Media queries */

@media screen and (max-width: 1050px) {
    .product-container {
        width: auto;
    }
}

@media screen and (max-width: 650px) {
    .login-content {
        margin: 5rem 2rem;
        width: auto;
    }

    .login-subheader p {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 520px) {
    .login-content {
        margin: 3.5rem 1rem;
        padding: 2.5rem 2rem 2rem 2rem;
        gap: 2rem;
    }

    .login-icon {
        width: 40px;
        height: 40px;
    }

    .icon-container {
        padding: 15px;
    }

    .secure-login-button-text {
        font-size: 16px;
        letter-spacing: 0px;
        margin: 0;
    }

    .secure-login-icon {
        width: 50px;
        height: 50px;
    }
}