* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f7fb;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    min-height: 95vh;
}

.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.header-text {
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

.company-name {
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-break: break-word;
}

.company-slogan {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin: 2px 0 0 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #e8eef8;
    border: none;
    color: #0a1f44;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    width: auto;
}
.btn-header:hover { background: #d6e0f2; }
.btn-header svg { width: 16px; height: 16px; }

.site-main {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 40px;
}

.footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #e9edf2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-text {
    margin: 0;
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 400;
}

.author-name {
    font-weight: 600;
    color: #1f2d4d;
}

.footer-year {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 300;
}

input, select, textarea {
    font: inherit;
    padding: 11px 14px;
    margin: 6px 0;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    width: 100%;
    background: #fff;
    color: #1f2d4d;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

button {
    font: inherit;
    padding: 10px 22px;
    margin: 8px 0 0;
    background: #0a1f44;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: auto;
    font-weight: 500;
    transition: background .15s;
}
button:hover { background: #132d5c; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}
th, td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f5;
    text-align: left;
    vertical-align: top;
}
th {
    background: #fafbfc;
    font-weight: 600;
    color: #1f2d4d;
    border-bottom: 1px solid #e3e8ef;
}

.site-main h1 {
    font-size: 24px;
    margin: 0 0 16px;
    color: #0a1f44;
    font-weight: 700;
}
.site-main h2 {
    font-size: 17px;
    margin: 28px 0 10px;
    color: #1f2d4d;
    font-weight: 600;
}
.site-main p { margin: 8px 0; }
.site-main a { color: #2563eb; text-decoration: none; }
.site-main a:hover { text-decoration: underline; }

.error   { color: #dc2626; }
.success { color: #16a34a; }
code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #1f2d4d;
}

.card--narrow {
    max-width: 400px;
    margin: 24px auto 48px;
    padding: 28px 28px 24px;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 12px;
}
.card--narrow h1 {
    margin: 0 0 20px;
    font-size: 22px;
    text-align: center;
}
.card--narrow button {
    display: block;
    margin: 16px 0 0;
    width: 100%;
}

@media (max-width: 800px) {
    body { padding: 6px; }

    .container {
        padding: 10px 12px 14px;
        border-radius: 12px;
        min-height: calc(100vh - 12px);
    }

    .header {
        padding: 12px 14px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .header-content {
        gap: 10px;
    }

    .logo-img { height: 38px; }

    .company-name {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .company-slogan {
        font-size: 11.5px;
        letter-spacing: 0.2px;
    }

    .site-header__actions {
        width: 100%;
    }

    .site-main {
        padding: 12px 8px 24px;
    }

    .site-main h1 { font-size: 20px; }
    .site-main h2 { font-size: 16px; }

    .footer { margin-top: 14px; padding-top: 12px; }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer-text,
    .footer-year { font-size: 12.5px; }


    .card--narrow {
        margin: 16px auto;
        padding: 22px 18px 20px;
        border-radius: 10px;
    }
    .card--narrow h1 { font-size: 20px; margin-bottom: 16px; }

  
    table { display: block; overflow-x: auto; white-space: nowrap; }
}

body.page-login {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

body.page-login .container {
    height: calc(100vh - 20px);
    min-height: 0;
}

body.page-login .site-main {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 0;
    position: relative;
}

.login-bg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #0a1f44;
}

.login-bg__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    will-change: opacity;
    background: transparent;
}

.login-bg__video.is-active {
    opacity: 1;
}

.login-bg__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 68, 0.01);
    z-index: 1;
    pointer-events: none;
}

.main-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: transparent;
    display: flex;
    align-items: center;
}

.main-slider .center-wrap {
    width: 38%;
    max-width: 550px;
    margin: 0;
    padding: 0 0 0 6%;
    display: flex;
    justify-content: flex-start;
}

.main-slider__wrap { width: 100%; }

.main-slider__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-slider__simple-title.simple-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
    text-shadow: 0px 4px 15px rgba(255, 255, 255, 0.9);
}

.main-slider__content.content {
    font-size: 18px;
    line-height: 1.6;
    color: #5a6a7e;
    margin-bottom: 40px;
    max-width: 100%;
    text-shadow: 0px 2px 10px rgba(255, 255, 255, 0.9);
}

.main-slider__btn { pointer-events: auto; }

.main-slider__btn .btn {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #0a1f44;
    border-radius: 50px;
    background-color: #ffffff;
    color: #0a1f44;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.main-slider__btn .btn:hover {
    background-color: #0a1f44;
    color: #ffffff;
    border-color: #0a1f44;
    box-shadow: 0 6px 20px rgba(10, 31, 68, 0.3);
}

.login-bg__form {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.login-bg__form .card--narrow {
    pointer-events: auto;
    width: 100%;
    max-width: 400px;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}


@media (max-width: 900px) {
  
    body.page-login {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    body.page-login .container {
        height: auto;
        min-height: calc(100vh - 12px);
    }

  
    body.page-login .site-main {
        display: flex;
        flex-direction: column;
        padding: 0;
        min-height: auto;
        flex: 1 1 auto;
    }

   
    .main-slider,
    .login-bg__video,
    .login-bg__overlay {
        display: none !important;
    }

  
    .login-bg {
        background: #0a1f44;
        height: auto;
        min-height: 100%;
        width: 100%;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
    }

    
    .login-bg__form {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 0; 
        padding: 24px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

    .login-bg__form .card--narrow {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }
}


@media (max-width: 420px) {
    .company-name { font-size: 15px; }
    .company-slogan { font-size: 10.5px; }
    .logo-img { height: 32px; }
    .login-bg__form { padding: 16px 10px; }
    .card--narrow { padding: 20px 16px; }
}