@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
}

.signin-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.signin-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/background.png");
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    z-index: 0;
}

.signin-header {
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 32px 86px;
}

.logo-left-img {
    width: 244px;
    height: auto;
}

.logo-right-img {
    width: 220px;
    height: auto;
}

.signin-content {
    z-index: 2;
    padding: 40px 86px 60px 86px;
    max-width: 700px;
}

.signin-title {
    font-weight: 700;
    font-size: 26px;
    line-height: 32px;
    text-transform: uppercase;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.signin-subtitle {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    line-height: 130%;
    min-width: 655px;
    margin-bottom: 24px;
}

.system-description-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 54px;
}

.system-description-link {
    font-size: 16px;
    font-weight: 600;
    color: #7E33FF;
    text-decoration: none;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    background-image: url("../images/arrow-right.svg");
    background-size: contain;
}

.btn-login {
    width: 153px;
    height: 48px;
    border-radius: 18px;
    border: none;
    background: #A6A6A6;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.btn-login:hover {
    background: #7D32FF;
}

.site-footer {
    margin-top: auto;
    z-index: 2;
    padding: 20px 86px;
    background: transparent;
    font-size: 10px;
    color: #080808;
    line-height: 1.3;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-contact a {
    color: #7A5AF8;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.login-modal, .modal-system {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-window {
    width: 352px;
    max-height: 90vh;
    background: #FDFDFC;
    border: 1px solid var(--primary);
    border-radius: 28px;
    box-shadow: 0px 12px 32px rgba(0,0,0,0.08);
    padding: 20px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    cursor: pointer;
}

.login-close-btn::before {
    content: "";
    width: 32px;
    height: 32px;
    display: block;
    background-image: url("../images/arrow-left.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.login-logo-mini {
    width: 29px;
    height: 54px;
    margin-bottom: 10px;
}

.login-title {
    font-size: 16px;
    text-align: center;
    color: #000;
    margin-bottom: 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-input {
    box-sizing: border-box;
    width: 293px;
    height: 52px;
    border: 1px solid #9E9E9E;
    border-radius: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 0 15px;
    background: #FDFDFC;
    margin-bottom: 8px;
}

.login-input::placeholder {
    color: #838383;
    opacity: 1;
}

.login-input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: #7E33FF;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 18px;
}

.login-support {
    margin-top: 40px;
    margin-bottom: 8px;
    color: #000;
    text-decoration: none;
}

.login-support:hover {
    color: var(--accent);
}

.system-window {
    width: 918px;
    max-height: 90vh;
    background: #FDFDFC;
    border: 1px solid var(--primary);
    border-radius: 28px;
    box-shadow: 0px 12px 32px rgba(0,0,0,0.08);
    position: relative;
    padding: 120px 20px 60px 50px;
    overflow: hidden;
}

.system-content-wrapper {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(122,90,248,0.35) transparent;
}

.system-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.system-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(122,90,248,0.25);
    border-radius: 20px;
}

.system-content-wrapper:hover::-webkit-scrollbar-thumb {
    background: rgba(122,90,248,0.45);
}

.system-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 13px;
    text-transform: uppercase;
    color: #1A1A1A;
    white-space: normal;
    max-width: calc(100% - 80px);
}

.system-body {
    font-size: 14px;
    line-height: 1.3;
    white-space: pre-line;
    color: #000;
    max-width: calc(100% - 80px);
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn::before {
    content: "";
    width: 32px;
    height: 32px;
    display: block;
    background-image: url("../images/arrow-left.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.download-pdf {
    position: absolute;
    right: 42px;
    bottom: 36px;
    font-weight: 600;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    color: #7E33FF;
}

.logo-left-mini {
    position: absolute;
    width: 45.29px;
    height: 84.29px;
    top: 31px;
    left: 41px;
}

.logo-mini-text {
    position: absolute;
    left: 100px;
    top: 42px;
    font-weight: 600;
    font-size: 20.789px;
    line-height: 25px;
    text-transform: lowercase;
    color: #1A1A1A;
}

.logo-mini-subtext {
    position: absolute;
    width: 120px;
    left: 101px;
    top: 66px;
    font-style: italic;
    font-weight: 500;
    font-size: 7.13px;
    line-height: 7px;
    display: flex;
    align-items: center;
    text-transform: lowercase;
    color: #1A1A1A;
}

@media (max-width: 1100px) {
    .canvas-wrapper { transform-origin: top left; }
    .content-left { width: 100%; max-width: 100%; padding-right: 24px; }
    .logo-right { display: none; }
    .header-row { padding-left: 24px; padding-right: 24px; }
    .content-row { padding-left: 24px; padding-right: 24px; margin-top: 12px; }
}

@media (max-width: 600px) {
    .title-text { font-size: 20px; line-height: 26px; }
    .subtitle-text { font-size: 14px; line-height: 18px; }
    .login-window { width: calc(100% - 40px); }
    .system-window { width: calc(100% - 40px); padding: 40px 20px 60px 20px; }
}
