/*******************************************************************************
 * The content of this file is subject to the ITS4YouLoginPage license.
 * ("License"); You may not use this file except in compliance with the License
 * The Initial Developer of the Original Code is IT-Solutions4You s.r.o.
 * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o.
 * All Rights Reserved.
 ******************************************************************************/

body {
    background: #f4f6f8;
}

#page {
    padding-top: 0 !important;
}

footer.app-footer {
    display: none !important;
}

.its4you-login-wrap {
    display: flex;
    min-height: 100vh;
    font-family: inherit;
}

.its4you-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px;
    color: #ffffff;
}

.its4you-visual h1 {
    margin: 0 0 12px 0;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--its4you-header-color);
}

.its4you-visual p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    max-width: none;
    color: var(--its4you-description-color);
    opacity: 0.9;
}

.its4you-social {
    margin-top: 28px;
}

.its4you-social-link {
    display: inline-block;
    margin-right: 16px;
    color: #ffffff;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.its4you-social-link:hover {
    opacity: 1;
    color: #ffffff;
}

.its4you-panel {
    width: 40%;
    min-width: 320px;
    max-width: 440px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 48px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
}

.its4you-layout-left,
.its4you-layout-left_half {
    flex-direction: row-reverse;
}

.its4you-layout-right_half .its4you-panel,
.its4you-layout-left_half .its4you-panel {
    width: 50%;
    max-width: none;
}

.its4you-layout-center {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
}

.its4you-layout-center .its4you-visual {
    position: static;
    width: 100%;
    flex: none;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 7vh 48px 10px;
    background: none !important;
    background-image: none !important;
}

.its4you-layout-center .its4you-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    min-width: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 44px 48px;
    margin-bottom: 48px;
}

.its4you-logo {
    max-width: 100%;
    width: auto;
    margin: 0 auto 36px auto;
    display: block;
}

.its4you-panel h3 {
    margin: 0 0 28px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1f2a3d;
    text-align: center;
}

.its4you-welcome-desc {
    margin: -20px 0 28px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #8a94a6;
    text-align: center;
}

.its4you-panel .group {
    position: relative;
    margin-bottom: 28px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.its4you-panel input {
    font-size: 15px;
    padding: 10px 34px 10px 0;
    -webkit-appearance: none;
    display: block;
    color: #38445a;
    width: 100%;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #c6cdd8;
    background: transparent;
}

.its4you-panel input:focus {
    outline: none;
    border-bottom-color: var(--its4you-accent);
}

.its4you-panel label {
    font-size: 15px;
    font-weight: normal;
    color: #8a94a6;
    position: absolute;
    pointer-events: none;
    left: 0;
    top: 10px;
    transition: all 0.2s ease;
    margin: 0;
}

.its4you-panel input:focus ~ label, .its4you-panel input.used ~ label {
    top: -16px;
    font-size: 12px;
    color: var(--its4you-accent);
}

.its4you-panel select {
    font-size: 15px;
    width: 100%;
    height: 34px;
    border: 1px solid #c6cdd8;
    border-radius: 6px;
    background: #ffffff;
    color: #38445a;
}

.its4you-eye {
    position: absolute;
    right: 0;
    top: 8px;
    border: none;
    background: transparent;
    padding: 2px;
    color: #8a94a6;
    cursor: pointer;
}

.its4you-eye:hover {
    color: var(--its4you-accent);
}

.its4you-button {
    width: 100%;
    max-width: 340px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: 6px;
    background: var(--its4you-accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.its4you-button:hover, .its4you-button:focus {
    background: var(--its4you-accent-dark);
    color: #ffffff;
    outline: none;
}

.its4you-links {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
}

.its4you-links a {
    color: var(--its4you-accent);
    cursor: pointer;
}

.its4you-messages {
    min-height: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.its4you-messages .failureMessage {
    color: #d64545;
    font-size: 13px;
}

.its4you-messages .successMessage {
    color: #2e9e5b;
    font-size: 13px;
}

.its4you-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    background: #fbfbfb;
    border-top: 1px solid #e7e9ee;
    z-index: 5;
}

@media (max-width: 991px) {
    .its4you-login-wrap {
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 24px 12px;
    }

    .its4you-visual {
        display: none;
    }

    .its4you-panel {
        width: 100%;
        max-width: 460px;
        min-width: 0;
        border-radius: 10px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
        padding: 40px 32px;
    }
}
