/* Foxlink SSO 首頁樣式（僅 index.blade.php 使用，作用域一律在 .index-v2 之下）

   這頁是對外公開的入口（routes/web.php 的 / 沒有任何中間件），未登入也看得到，
   所以「未登入」才是主要狀態；已登入時多一張身分卡與一顆前往連結。
   視覺語彙沿用 login.css：品牌藍漸層、青色三重色帶、18px 圓角卡片。
   刻意不放盾牌記號——這頁的背景已經有照片、漸層、三條色帶，盾牌會是第四層裝飾；
   而該記號在登入頁與 SSO 按鈕規範上都出現過，首頁不放並不影響品牌辨識。 */
.index-v2 {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #0b4c7c;
}

/* 公司大樓照。遮罩刻意調到左右均勻（不是登入頁那種單邊濃），讓建築物輪廓看得出來
   ——既然要載這張圖，就不該被蓋到幾乎看不見 */
.index-v2__photo {
    position: absolute;
    inset: 0;
    background: url('../img/bg-img/bg_company.jpg') center / cover no-repeat;
}

.index-v2__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
            rgba(14, 92, 147, 0.90) 0%,
            rgba(11, 76, 124, 0.74) 50%,
            rgba(9, 63, 104, 0.58) 100%);
}

.index-v2__ribbon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.index-v2__inner {
    position: relative;
    min-height: 100vh;
    padding: 44px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-v2__card {
    width: 434px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(10, 34, 47, 0.24);
    padding: 34px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.index-v2__logo {
    height: 58px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* 標題只留服務名，品牌交給 logo——logo 圖上已經有 FOXLINK SSO 字樣，
   再寫一次「Foxlink …」會是同一頁第三次出現 Foxlink */
.index-v2__title {
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    color: #0E5C93;
}

.index-v2__title small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.4px;
    color: #8ba0ac;
}

.index-v2__divider {
    width: 100%;
    height: 1px;
    background: #eef2f6;
}

/* 身分卡：在公開入口上回答「我現在是用誰的身分」，共用電腦時特別有用 */
.index-v2__who {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: #f4f8fa;
    border: 1px solid #e2ebf0;
    border-radius: 12px;
}

.index-v2__avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #35b6c4;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-v2__who-text {
    min-width: 0;
    line-height: 1.4;
}

.index-v2__who-name {
    font-size: 14px;
    font-weight: 600;
    color: #10222f;
}

/* 信箱可能很長，超出就截斷而不是把卡片撐開 */
.index-v2__who-mail {
    font-size: 12px;
    color: #8ba0ac;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-v2 .btn {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    font-size: 14.5px;
    font-weight: 500;
}

.index-v2 .btn svg {
    flex-shrink: 0;
}

/* 登出降權成細字連結：它是離開，不是與主要動作平行的選項，
   而且誤點的代價不對稱（要重新登入、重跑 MFA） */
.index-v2__signout {
    margin-top: -4px;
    text-align: center;
}

.index-v2__signout a {
    font-size: 12.5px;
    color: #8ba0ac;
    border-bottom: 1px solid #e2e9ee;
    padding-bottom: 1px;
}

.index-v2__signout a:hover {
    color: #0E5C93;
}

@media (max-width: 767.98px) {
    .index-v2__inner {
        padding: 26px 20px;
    }

    .index-v2__card {
        padding: 26px 20px;
    }

    .index-v2__title {
        font-size: 17px;
    }
}
