/* login.css */


/* 外層置中 */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 18px;
}

/* 主卡片 */
.system-card {
    width: 100%;
    max-width: 1040px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(112, 166, 197, 0.22);
    border: 1px solid rgba(210, 236, 247, 0.9);
    backdrop-filter: blur(10px);
}

/* 左側介紹區 */
.left-panel {
    min-height: 620px;
    padding: 70px 58px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 236, 160, 0.75), transparent 32%),
        radial-gradient(circle at 80% 75%, rgba(181, 226, 245, 0.9), transparent 36%),
        linear-gradient(145deg, #dff4ff 0%, #fff3bd 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* 左側裝飾圓 */
.left-panel::before {
    content: "";
    position: absolute;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    top: 46px;
    right: 46px;
}

.left-panel::after {
    content: "";
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 219, 112, 0.35);
    bottom: 56px;
    left: 50px;
}

/* 左側標題 */
.left-panel h1 {
    position: relative;
    z-index: 1;
    font-size: 42px;
    font-weight: 800;
    color: #2f6f92;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* 左側文字 */
.left-panel p {
    position: relative;
    z-index: 1;
    font-size: 17px;
    line-height: 2;
    color: #52666f;
    max-width: 420px;
}

/* 右側登入/註冊區 */
.login-panel {
    padding: 58px 54px;
    background: rgba(255, 255, 255, 0.96);
}

/* 右側標題 */
.login-panel h2 {
    font-size: 32px;
    font-weight: 800;
    color: #2f6f92;
    margin-bottom: 28px;
    text-align: center;
}

/* 表單標籤 */
.form-label {
    color: #3e6f86;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 輸入框 */
.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid #d6edf7;
    padding: 12px 15px;
    color: #2f3a3f;
    background-color: #fbfdff;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: #9aaab2;
}

.form-control:focus,
.form-select:focus {
    border-color: #86cce8;
    box-shadow: 0 0 0 0.22rem rgba(134, 204, 232, 0.22);
    background-color: #ffffff;
}

/* 密碼眼睛按鈕 */
.input-group .btn {
    border-radius: 0 16px 16px 0;
    border-color: #d6edf7;
    color: #6b8795;
    background: #f7fbfc;
}

.input-group .form-control {
    border-radius: 16px 0 0 16px;
}

.input-group .btn:hover {
    background: #eaf7ff;
    color: #2f6f92;
}

/* 提示文字 */
.text-muted {
    color: #7a8e97 !important;
}

/* 登入/註冊主按鈕 */
.btn-login {
    margin-top: 10px;
    background: linear-gradient(135deg, #78c7e6 0%, #f5d978 100%);
    color: #2f3a3f;
    border: none;
    border-radius: 999px;
    padding: 13px 24px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 10px 24px rgba(120, 199, 230, 0.32);
    transition: all 0.22s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5fb8dd 0%, #efd05f 100%);
    color: #2f3a3f;
    box-shadow: 0 14px 30px rgba(120, 199, 230, 0.42);
}

.btn-login:active {
    transform: translateY(0);
}

/* 註冊/返回登入連結 */
.small-link {
    color: #4a90b8;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    margin-left: 4px;
}

.small-link:hover {
    color: #2f6f92;
    text-decoration: underline;
}

/* 訊息提示 */
.alert {
    border-radius: 16px;
    border: none;
    padding: 13px 16px;
    font-weight: 600;
}

.alert-success {
    background: #e9f8ef;
    color: #2f6f4e;
}

.alert-danger {
    background: #fff0ee;
    color: #b1443e;
}

/* Bootstrap secondary outline 微調 */
.btn-outline-secondary {
    border-color: #d6edf7;
}

/* 手機與平板 */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 20px 14px;
        align-items: flex-start;
    }

    .system-card {
        border-radius: 24px;
    }

    .left-panel {
        min-height: auto;
        padding: 42px 30px;
        text-align: center;
    }

    .left-panel h1 {
        font-size: 32px;
    }

    .left-panel p {
        font-size: 16px;
        max-width: none;
    }

    .login-panel {
        padding: 40px 28px;
    }

    .login-panel h2 {
        font-size: 28px;
    }
}

/* 小手機 */
@media (max-width: 480px) {
    .left-panel {
        padding: 36px 24px;
    }

    .login-panel {
        padding: 34px 22px;
    }

    .left-panel h1 {
        font-size: 28px;
    }

    .btn-login {
        font-size: 16px;
    }
}