﻿html,
body {
    height: 100%;
    margin: 0;
}

body {
    background: #f4f6f9;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", sans-serif;
}

.login-header {
    min-height: 70px;
    background: linear-gradient(90deg, #17253A, #0e2240, #17253A);
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    color: #22d3a6;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .login-logo:hover,
    .login-logo:focus {
        color: #22d3a6;
    }

    .login-logo span {
        color: white;
        margin-left: 10px;
    }

.login-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25%;
}

.login-system-name {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, .45);
    color: white;
    font-size: 1.05rem;
    white-space: nowrap;
}

.login-header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.login-support-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: background-color .2s ease;
}

    .login-support-link:hover,
    .login-support-link:focus {
        color: white;
        background: rgba(255, 255, 255, .10);
    }

    .login-support-link i {
        font-size: 1.2rem;
    }

.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 620px;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.login-icon {
    width: 320px;
    height: 220px;
    margin: auto;
    margin-bottom: 10px;
    border-radius: 25%;
    background: #eef8f5;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #22d3a6;
    font-size: 3rem;
}

.login-card h1 {
    text-align: center;
    font-weight: 700;
    color: #17253A;
}

.login-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 40px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

    .login-options a {
        text-decoration: none;
        color: #22d3a6;
    }

.btn-login {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px;
    background: #22d3a6;
    color: white;
    font-weight: 600;
    transition: background-color .2s ease;
}

    .btn-login:hover {
        background: #1cb892;
    }

.login-footer {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 18px 4%;
    border-top: 1px solid #d9e0e8;
    color: #6c757d;
    box-sizing: border-box;
}

.login-footer-company {
    flex: 0 0 auto;
    color: #17253A;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

.login-footer-copyright {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 35px;
    border-left: 1px solid #b9c3d0;
    white-space: nowrap;
}

.login-footer-links {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.login-footer-link {
    display: inline-block;
    padding: 0 24px;
    color: #06f;
    text-decoration: none;
    white-space: nowrap;
}

    .login-footer-link + .login-footer-link {
        border-left: 1px solid #9eabbc;
    }

    .login-footer-link:last-child {
        padding-right: 0;
    }

    .login-footer-link:hover,
    .login-footer-link:focus {
        color: #004fc4;
        text-decoration: underline;
    }

.btn-login.is-loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

@media (max-width: 575px) {
    .login-header {
        min-height: 64px;
        padding: 0 12px;
    }

    .login-logo {
        font-size: 1.45rem;
    }

        .login-logo span {
            margin-left: 7px;
        }

    .login-system-name {
        margin-left: 12px;
        padding-left: 12px;
        font-size: .75rem;
        white-space: normal;
        line-height: 1.2;
    }

    .login-support-link {
        gap: 5px;
        padding: 8px 5px;
        font-size: .85rem;
        white-space: nowrap;
    }

        .login-support-link i {
            font-size: 1rem;
        }

    .login-card {
        padding: 30px 22px;
    }

    .login-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 18px 16px;
        text-align: center;
    }

    .login-footer-company,
    .login-footer-copyright {
        white-space: normal;
    }

    .login-footer-copyright {
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid #b9c3d0;
    }

    .login-footer-links {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .login-footer-link {
        padding: 0 12px;
        font-size: .9rem;
    }

        .login-footer-link:last-child {
            padding-right: 12px;
        }
}

@media (min-width: 576px) and (max-width: 900px) {
    .login-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        padding: 18px 20px;
    }

    .login-footer-copyright {
        flex: 1 1 45%;
        padding-left: 20px;
    }

    .login-footer-links {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .login-header {
        padding: 0 8px;
    }

    .login-logo {
        font-size: 1.25rem;
    }

    .login-system-name {
        margin-left: 8px;
        padding-left: 8px;
        font-size: .68rem;
    }

    .login-support-link {
        font-size: .78rem;
    }
}
