* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #3d4bd4;
    --dark-blue: #2938b3;
    --light-blue: #f3f7ff;
    --text-blue: #3347c8;
    --border: #bfc3ce;
}

body {
    font: 16px / 26px Roboto, sans-serif !important;
    background: #ffffff;
    color: #333;
}

.page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    background: white;
}

/* =========================
   ҮНДСЭН ХЭСЭГ
========================= */

.main-content {
    width: calc(100% - 390px);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* =========================
   HEADER
========================= */

.header {
    padding: 50px 50px 0;
	height: 100px;
	width: 100%;
    position: relative;
    z-index: 5;
}

.company-name {
    font-size: 24px;
    font-weight: 700;
    color: #2f55d4;
    letter-spacing: .5px;
	position: relative;
	text-align: left;
	text-shadow: 1px 2px 4px #2f55d4;
	text-transform: uppercase;
}

.department-name {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #4161db;
}

/* =========================
   HERO
========================= */

.hero {
    height: 520px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.96),
            rgba(255,255,255,.55)
        );
}

/*
  Хэрэв эх зураг байгаа бол:
  .hero {
      background-image: url("assets/hero.jpg");
      background-size: cover;
      background-position: center;
  }
*/

.hero-content {
    position: absolute;
    left: 40px;
    top: 180px;
    z-index: 5;
    opacity: 0;
}

.hero-content h1 {
    color: var(--blue);
    font-size: 38px;
    line-height: 1.2;
}

.hero-content p {
    margin-top: 15px;
    color: #6573a8;
}



/* =========================
   BRANCHES
========================= */

.branches {
    min-height: 250px;
    background: #f4f8ff;
    padding: 25px 22px 35px;
}

.branches h2 {
    font-size: 14px;
    font-weight: 700;
    color: #3049ce;
    margin: 0 0 22px 8px;
}

.branch-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.branch-card {
    height: 150px;
    border: none;
    border-radius: 7px;
    background-image: linear-gradient(to right top,#416de0,#2151cd,#1a3fa1);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    transition: .2s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(50,70,200,.25);
}

/* =========================
   LOGIN PANEL
========================= */

.login-panel {
    width: 390px;
    min-height: 100vh;
    padding: 25px 27px;
    background: #ffffff;
    position: relative;
    z-index: 20;
}

.login-box {
    width: 100%;
    min-height: 820px;
    border-radius: 10px;
    background: white;
    box-shadow:
        0 3px 18px rgba(0,0,0,.34);
    padding: 75px 44px 40px;
}

/* =========================
   LOGO
========================= */

.logo {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 125px;
    max-height: 125px;
    object-fit: contain;
}

/* =========================
   LOGIN TITLE
========================= */

.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.login-divider span {
    height: 1px;
    width: 85px;
    background: #d9d9d9;
}

.login-divider b {
    color: #3349d2;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* =========================
   DESCRIPTION
========================= */

.login-description {
    text-align: center;
    color: #858585;
    font-size: 12px;
    line-height: 1.4;
    margin: 24px 0 35px;
}

/* =========================
   INPUT
========================= */

form {
    width: 100%;
}

form input {
    width: 100%;
    height: 41px;
    border: 1px solid #bfc2c9;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #555;
    transition: .2s;
}

form input:focus {
    border-color: #4455d4;
    box-shadow:
        0 0 0 2px rgba(68,85,212,.08);
}

form input::placeholder {
    color: #999;
}

/* =========================
   LOGIN BUTTON
========================= */

.login-button {
    width: 100%;
    height: 41px;
    border: none;
    border-radius: 6px;
    margin-top: 12px;
    background: #2f55d4;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.login-button:hover {
    background: #303dbb;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .main-content {
        width: calc(100% - 350px);
    }

    .login-panel {
        width: 350px;
        padding: 20px;
    }

    .login-box {
        padding-left: 30px;
        padding-right: 30px;
    }

    .branch-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-illustration {
        left: 50px;
        transform: scale(.85);
        transform-origin: left top;
    }
}

@media (max-width: 800px) {

    .page {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }

    .login-panel {
        width: 100%;
        min-height: auto;
    }

    .login-box {
        min-height: auto;
        padding: 40px;
    }

    .hero {
        height: 400px;
    }

    .hero-illustration {
        left: 0;
        transform: scale(.7);
    }

    .branch-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {

    .header {
        padding: 25px 20px 0;
    }

    .company-name {
        font-size: 18px;
    }

    .department-name {
        font-size: 10px;
    }

    .hero {
        height: 300px;
    }

    .hero-illustration {
        left: -80px;
        top: 20px;
        transform: scale(.55);
    }

    .branches {
        padding: 20px 15px;
    }

    .branch-grid {
        grid-template-columns: 1fr;
    }

    .branch-card {
        height: 90px;
    }

    .login-panel {
        padding: 15px;
    }

    .login-box {
        padding: 30px 25px;
    }
}