*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:"Microsoft JhengHei",sans-serif;
    background:#f4f6f9;
    display:flex;
    min-height:100vh;
}

/* 左側欄 */

.sidebar{
    width:280px;
    background:#243447;
    color:white;
    padding:25px;
    overflow:auto;
}

.logo{
    text-align:center;
    margin-bottom:25px;
}

.company-logo{
    width:190px;
    max-width:100%;
    display:block;
    margin:0 auto 18px;
}

.logo h2{
    margin:0 0 8px;
    font-size:28px;
}

.logo p{
    color:#cfd8dc;
    font-size:16px;
}

/* 左側選單 */

.menu-item{
    padding:14px 16px;
    margin-bottom:10px;
    border-radius:10px;
    background:rgba(255,255,255,0.08);
    cursor:pointer;
    font-size:18px;
}

.menu-item.active{
    background:#1976d2;
}

.menu-item.done{
    background:#2e7d32;
}

/* 右側主內容 */

.main{
    flex:1;
    padding:35px;
    overflow:auto;
}

.progress-section{
    margin-bottom:20px;
}

.progress-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:8px;
    font-size:16px;
}

.progress-bar{
    height:18px;
    background:#dcdfe3;
    border-radius:20px;
    overflow:hidden;
}

#progressFill{
    height:100%;
    width:0;
    background:#1976d2;
    transition:.3s;
}

/* 內容卡片 */

.content-card{
    background:white;
    border-radius:14px;
    padding:30px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
}

.content-card h1{
    font-size:34px;
    margin-top:0;
}

.content-card p{
    font-size:18px;
    line-height:1.8;
}

/* 一般圖片 */

.content-card img{
    display:block;
    max-width:260px;
    width:100%;
    height:auto;
    margin:8px 0;
    border-radius:10px;
    cursor:pointer;
}

/* 首頁 Logo */

.welcome-logo{
    width:180px;
    max-width:100%;
    display:block;
    margin:0 auto 25px;
}

/* Teams 搜尋圖：首頁專用，可大一點 */

.teams-search-img{
    max-width:800px !important;
    width:100%;
}

/* 一般 checkbox 樣式 */

.check-item{
    display:flex;
    align-items:flex-start;

    width:100%;
    max-width:900px;

    background:#eef6ff;
    border-left:5px solid #2b7cd3;
    padding:10px 14px;
    border-radius:8px;

    font-size:20px;
    font-weight:700;
    line-height:1.5;

    margin:14px 0;
    box-sizing:border-box;
}

.check-item input{
    transform:scale(1.25);
    margin-right:12px;
    margin-top:5px;
    flex-shrink:0;
}

/* 說明文字區 */

.notice-box{
    background:#fff8e1;
    border-left:5px solid #f9a825;
    padding:8px 18px;
    border-radius:8px;
    margin:2px 0;
    line-height:1.2;
    font-size:18px;
}

.app-desc{
    margin:8px 0 22px 0;
    padding:12px 15px;
    background:#f5f7fa;
    border-left:4px solid #2b7cd3;
    border-radius:8px;
    line-height:1.8;
    font-size:15px !important;
}

/* 第3頁 App 圖示＋說明排版 */

.app-row{
    display:flex;
    align-items:center;
    gap:35px;
    margin:35px 0;
}

.app-row img{
    width:170px;
    max-width:170px;
    height:auto;
    display:block;
    clear:none !important;
    flex-shrink:0;
    cursor:pointer;
    margin:0 !important;
}

.app-row-content{
    flex:1;
    max-width:850px;
}

/* 第3頁 checkbox 稍微大一點 */

.app-row-content .check-item{
    max-width:520px;
    font-size:20px;
    padding:10px 14px;
    margin-top:0;
    margin-bottom:12px;
}

.app-row-content .check-item input{
    transform:scale(1.35);
    margin-top:7px;
}

.app-row-content .app-desc{
    margin-left:0;
    max-width:850px;
}

/* 按鈕 */

.button-group{
    margin-top:35px;
}

.btn{
    border:none;
    border-radius:8px;
    padding:12px 20px;
    cursor:pointer;
    font-size:15px;
    margin-right:8px;
}

.btn-primary{
    background:#1976d2;
    color:white;
}

.btn-secondary{
    background:#90a4ae;
    color:white;
}

/* 圖片放大視窗 */

.modal{
    display:none;
    position:fixed;
    z-index:999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
}

.modal-content{
    display:block;
    margin:auto;
    margin-top:50px;
    max-width:80%;
    max-height:85%;
}

.close{
    position:absolute;
    right:40px;
    top:20px;
    color:white;
    font-size:40px;
    cursor:pointer;
}

/* 完成頁 */

.finish-page{
    width:100%;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-family:"Microsoft JhengHei",sans-serif;
    text-align:center;
    background:#f4f6f9;
    padding:40px;
}

.finish-page h1{
    font-size:36px;
}

.finish-page p{
    font-size:20px;
    line-height:1.8;
}

/* 小螢幕 */

@media(max-width:900px){
    body{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .main{
        padding:20px;
    }

    .app-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .app-row img{
        width:140px;
        max-width:140px;
    }
}

.image-row{
    display:flex;
    gap:30px;
    margin:20px 0;
    flex-wrap:wrap;
}

.image-row img{
    width:300px;
    max-width:100%;
    height:auto;
}
/* MFA STEP 1 左圖右文 */

.mfa-step-layout {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
}

.mfa-image-wrap {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfa-image-wrap img {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

.mfa-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mfa-success-box {
  padding: 14px 18px;
  background: #f5f7fb;
  border-left: 4px solid #2f80ed;
  border-radius: 8px;
  line-height: 1.7;
}

/* 小螢幕改成上下排列 */
@media (max-width: 760px) {
  .mfa-step-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .mfa-image-wrap {
    width: 150px;
  }
}
/* MFA 頁面：左圖右提示文字 */

.mfa-intro-layout {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 18px 0 28px;
}

.mfa-intro-image {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfa-intro-image img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.mfa-intro-notice {
  flex: 1;
  margin: 0;
  line-height: 1.8;
}

/* 小螢幕時改成上下排列 */
@media (max-width: 760px) {
  .mfa-intro-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .mfa-intro-image {
    width: 150px;
  }

  .mfa-intro-image img {
    max-width: 150px;
  }
}
.step-title{
    font-size: 30px;
    font-weight: 700;
    margin: 45px 0 15px;
}
