﻿html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: #f7f8fb;
}

.brand-panel {
    background: linear-gradient(rgba(0, 42, 76, 0.94), rgba(0, 42, 76, 0.94)), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-content {
    text-align: center;
}

.brand-logo-large {
    width: 370px;
    opacity: .85;
    margin-bottom: 70px;
}

.brand-text {
    color: #4fc3f7;
    font-size: 20px;
    line-height: 1.7;
}

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 34px;
}

.brand-logo-small {
    width: 150px;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 18px;
    color: #003b71;
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.login-header p {
    margin: 0;
    color: #9ba7bd;
    font-size: 14px;
}

.login-card {
    width: 360px;
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
}

    .login-card h2 {
        color: #003b71;
        font-size: 20px;
        margin-bottom: 28px;
    }

.btn-microsoft {
    height: 48px;
    border-radius: 10px;
    background: #3db3e3;
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .2s;
}

    .btn-microsoft:hover {
        background: #229fd3;
        color: white;
    }

.ms-icon {
    color: #f25022;
    font-size: 14px;
}

.ms-logo {
    width: 18px;
    height: 18px;
}

.login-footer {
    margin-top: 22px;
    font-size: 12px;
    color: #9ba7bd;
    text-align: center;
}

.portal-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #f4f7fb;
}

.portal-sidebar {
    background: #002f57;
    color: white;
    padding: 28px 20px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
    font-weight: 700;
}

    .sidebar-brand img {
        width: 44px;
    }

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

    .sidebar-menu a {
        color: #c7d7e8;
        text-decoration: none;
        padding: 12px 14px;
        border-radius: 10px;
        font-weight: 600;
    }

        .sidebar-menu a:hover,
        .sidebar-menu a.active {
            background: rgba(255,255,255,.12);
            color: white;
        }

.portal-main {
    min-height: 100vh;
    background: #f4f7fb;
}

.portal-topbar {
    height: 76px;
    background: #f4f7fb;
    border-bottom: 1px solid #e3eaf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.topbar-title span {
    color: #003b71;
    font-size: 15px;
    font-weight: 700;
}

.portal-content {
    padding: 32px 36px;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}

    .portal-header h1 {
        margin: 0 0 8px;
        color: #002f57;
    }

    .portal-header p {
        margin: 0;
        color: #6f7d90;
    }

.page-section {
    margin-top: 12px;
}

.section-header {
    margin-bottom: 24px;
}

    .section-header h2 {
        color: #003b71;
        margin: 0 0 8px;
        font-size: 28px;
    }

    .section-header p {
        color: #6f7d90;
        margin: 0;
    }

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 22px;
}

.doc-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    transition: .2s;
}

    .doc-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0,0,0,.1);
    }

    .doc-card h3 {
        color: #003b71;
        margin: 0 0 10px;
    }

    .doc-card p {
        color: #6f7d90;
        margin: 0;
        line-height: 1.5;
    }

.user-box {
    background: white;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    min-width: 260px;
}

    .user-box span {
        display: block;
        color: #7d8ca3;
        font-size: 13px;
        margin-top: 4px;
    }

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;
}

.module-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    transition: .2s;
}

    .module-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(0,0,0,.1);
    }

    .module-card h2 {
        color: #003b71;
        margin-top: 0;
    }

    .module-card p {
        color: #6f7d90;
        line-height: 1.5;
    }

    .module-card.disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.form-page {
    padding: 36px;
    background: #f4f7fb;
    min-height: 100vh;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

    .form-header h1 {
        color: #003b71;
        margin: 0 0 8px;
    }

    .form-header p {
        color: #6f7d90;
        margin: 0;
    }

.back-link {
    color: #003b71;
    text-decoration: none;
    font-weight: 700;
}

.form-card {
    background: white;
    border-radius: 18px;
    padding: 32px;
    max-width: 760px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-weight: 700;
        color: #334155;
        margin-bottom: 8px;
    }

.form-control {
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
}

.primary-button {
    border: none;
    border-radius: 10px;
    background: #3db3e3;
    color: white;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
}

.success-message {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    background: #e8f8ef;
    color: #167744;
    font-weight: 600;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-section-title {
    color: rgba(255,255,255,.45);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 14px 6px;
}

.markdown-container {
    background: #fff;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    max-width: 1120px;
    margin: 0 auto;
    line-height: 1.7;
}

    .markdown-container h1 {
        color: #003b71;
        font-size: 2.2rem;
        margin-bottom: 24px;
    }

    .markdown-container h2 {
        color: #003b71;
        font-size: 1.8rem;
        margin-top: 48px;
        margin-bottom: 20px;
        padding-bottom: 8px;
        border-bottom: 2px solid #e5edf5;
    }

    .markdown-container h3 {
        color: #163a63;
        font-size: 1.35rem;
        margin-top: 32px;
        margin-bottom: 14px;
    }

    .markdown-container h4 {
        color: #163a63;
        margin-top: 24px;
    }

    .markdown-container p,
    .markdown-container li,
    .markdown-container td {
        color: #263849;
        font-size: 15px;
    }

    .markdown-container ul,
    .markdown-container ol {
        padding-left: 24px;
    }

    .markdown-container li {
        margin-bottom: 8px;
    }

    .markdown-container table {
        width: 100%;
        border-collapse: collapse;
        margin: 28px 0;
        font-size: 15px;
    }

    .markdown-container th {
        background: #f1f5f9;
        color: #003b71;
        font-weight: 700;
        text-align: left;
    }

    .markdown-container th,
    .markdown-container td {
        border: 1px solid #d8e0ea;
        padding: 12px 14px;
        vertical-align: top;
    }

    .markdown-container tr:nth-child(even) {
        background: #fafcff;
    }

    .markdown-container hr {
        border: none;
        border-top: 1px solid #d8e0ea;
        margin: 40px 0;
    }

    .markdown-container img {
        max-width: 100%;
        border-radius: 10px;
        margin: 20px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

    .markdown-container pre {
        background: #f6f8fa;
        padding: 16px;
        border-radius: 8px;
        overflow-x: auto;
    }

    .markdown-container code {
        font-family: Consolas, monospace;
    }

    .markdown-container blockquote {
        border-left: 4px solid #0d6efd;
        padding-left: 16px;
        margin: 20px 0;
        color: #475569;
        font-style: italic;
    }

    .markdown-container em {
        color: #475569;
    }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #6f7d90;
    font-size: 14px;
}

    .breadcrumb a {
        color: #003b71;
        text-decoration: none;
        font-weight: 600;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb strong {
        color: #334155;
        font-weight: 700;
    }

@media (max-width: 900px) {
    .portal-shell {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        display: none;
    }

    .portal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }
}



@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .login-card {
        width: calc(100vw - 64px);
    }
}
