@charset 'utf-8';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.wrapper.login {
    min-height: 100vh;
    background: #000000;
    max-width: 386px;
    margin: 0 auto;
    padding: 2rem 1rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 頂部 Logo 與標題 */
.top_login {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
}

.logo-img {
    max-width: 320px;
    display: block;
    margin: 0 auto;
}

.page-title {
    color: #ffffff;
    font-size: 2rem;
    margin-top: 1rem;
    letter-spacing: 2px;
    font-weight: bold;
}

.login_tab {
    width: 100%;
    max-width: 420px;
}

/* 深色主卡片 */
.dark-card {
    background: #242424;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.tab_content {
    display: block;
}

/* 表單輸入框列 */
.form-group {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

/* 左側 Icon */
.form-group .left-icon {
    position: absolute;
    left: 4px;
    color: #ffffff;
    font-size: 18px;
    z-index: 2;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;

}

/* 輸入框主體 */
.form-control {
    width: calc(100% - 32px);
    height: 40px;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #555 !important;
    border-radius: 0;
    color: #ffffff !important;
    font-size: 1rem;
    /* padding-left: 32px !important; */
    margin-left: 32px;
    padding-right: 40px;
    transition: all 0.3s ease;
    box-shadow: none !important;
    outline: none;
}

.form-control:focus {
    border-bottom: 1px solid #ffffff !important;
}

.form-control::placeholder {
    color: #888888;
}

/* 瀏覽器自動填寫的暗色適配 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #242424 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 右側清除/顯示密碼 Icon */
.form-group .icon_eye,
.form-group .icon_del {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

.form-group .icon_eye {
    display: block;
}

.form-group .icon_del2 {
    right: 35px;
}

/* 記住我 Checkbox */
.span-remember {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 0.95rem;
}

.span-remember input[type="checkbox"] {
    margin-right: 5px;
    accent-color: #e60012;
    /* 核取方塊顏色 */
}

/* 驗證碼區塊 (我不是機器人樣式替代) */
.captcha-group {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.captcha-label {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 8px;
}

.captcha-box {
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 6px;
    padding: 5px;
    position: relative;
}

.captcha-box .form-control {
    flex: 1;
    height: 35px;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.captcha-box img {
    height: 35px;
    border-radius: 4px;
    margin-left: 10px;
}

/* 提交按鈕 */
.btn-submit {
    display: block;
    width: 100%;
    background-color: rgb(191, 38, 31);
    border: 1px solid rgb(191, 38, 31);
    color: #ffffff;
    border-radius: 20px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    position: relative;
}

.btn-submit:before {
    background-color: currentColor;
    border-radius: inherit;
    bottom: 0;
    color: inherit;
    content: "";
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity .2s cubic-bezier(.4, 0, .6, 1);
}

.btn-submit:hover {
    background-color: rgb(211, 48, 41);
    border-color: rgb(211, 48, 41);
}

.btn-submit:hover:before {
    opacity: 0.08;
}

.btn-submit:active:before {
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2), 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12);
}

/* 提交按鈕 (資料未填滿時的不可點擊狀態) */
.btn-submit:disabled:before {
    opacity: 0;
}

.btn-submit:disabled {
    background: #444444;
    border: 1px solid #444444;
    color: #aaaaaa;
    cursor: not-allowed;
}

.btn-submit:disabled:hover {
    background: #444444;
    color: #aaaaaa;
}

/* 頁面下方切換連結 */
.footer-action {
    color: #fbbf24;
    font-size: 0.9rem;
    text-align: left;
    font-weight: normal;
}

.switch-link {
    color: #2196f3 !important;
    text-decoration: none;
    cursor: pointer;
    margin-left: 5px;
}

.switch-link:hover {
    text-decoration: underline;
}

/* 錯誤提示文字 */
.v-messages {
    position: absolute;
    bottom: -21px;
    left: 32px;
    color: #ff5252;
    font-size: 12px;
    display: none;
}

/* --- 客服與下載區塊 --- */
.cs-section {
    margin-top: 1rem;
}

.cs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: normal;
}

.btn-download {
    background: linear-gradient(to top right, #aa0505, #c80f0f 30%, #e61e1e 60%, #fa3232);
    border: 1px solid hsla(0, 100%, 75%, .7);
    box-shadow: 0 0 10px rgba(255, 0, 0, .6);
    transition: box-shadow .2s;
    overflow: visible;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
    /* 紅色下載按鈕 */
    color: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    line-height: 36px;
    height: 36px;
    width: 150px;
    justify-content: center;
}

.btn-download i {
    margin-right: 5px;
}


.cs-btn {
    display: block;
    width: 100%;
    background: #555555;
    color: #ffffff;
    text-align: center;
    height: 36px;
    line-height: 36px;
    border-radius: 25px;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.cs-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.cs-btn:hover {
    background: #666666;
}

/* 選單下拉樣式微調 */
.short-form-control {
    /* appearance: none; */
    /* -webkit-appearance: none; */
    /* background: transparent url('../images/select.png') no-repeat scroll 95% center; */
    background-size: 10px;
    padding-right: 0;
    width: 70px;
}

.short-form-control+.form-control {
    margin-left: 0px;
}