﻿/* 原有的樣式 */
.login-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-top: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #495057;
}

.btn-login {
    background-color: #0d6efd;
    font-weight: 600;
    transition: all 0.2s;
}

    .btn-login:hover {
        background-color: #0b5ed7;
        transform: translateY(-2px);
    }

/* 修改表單輸入框樣式，增加對比度 */
.form-floating {
    margin-bottom: 1rem;
}

    /* 輸入框本身 */
    .form-floating input.form-control {
        border: 1px solid #ced4da;
        background-color: #fff;
        color: #212529; /* 更深的文字顏色 */
    }

    /* 輸入框標籤 */
    .form-floating label {
        color: #495057; /* 深灰色，更容易看見 */
        font-weight: 500; /* 稍微加粗字體 */
    }

/* 錯誤提示文字 */
.text-danger {
    color: #dc3545 !important; /* 更亮的紅色 */
    font-weight: 500; /* 加粗顯示錯誤信息 */
    margin-top: 0.25rem;
    display: block;
}

/* 表單驗證時的顏色 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 記住我選項加深文字 */
.form-check-label {
    color: #333;
    font-weight: 500;
}

.login-options {
    margin-top: 1.5rem;
    text-align: center;
}

    .login-options a {
        color: #0d6efd; /* 鮮明的藍色 */
        font-weight: 500;
        text-decoration: none;
    }

        .login-options a:hover {
            text-decoration: underline;
        }

    .login-options p {
        margin-bottom: 0.5rem;
    }
/* 添加到 login.css */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.5s ease-out;
}

.form-floating input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
/* 驗證碼相關樣式 */
.captcha-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .captcha-container .form-floating {
        flex: 1;
        margin-right: 10px;
    }

.captcha-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .captcha-image img {
        height: 40px;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        margin-bottom: 5px;
    }

    .captcha-image button {
        font-size: 12px;
        padding: 2px 8px;
    }

        /* 確保按鈕圖標正常顯示 */
        .captcha-image button i {
            margin-right: 3px;
        }

/* 註冊頁面特定樣式 */
.login-container .form-floating {
    margin-bottom: 1.2rem;
}

/* 密碼強度提示 */
.password-strength {
    height: 5px;
    margin: 10px 0;
    background-color: #f1f1f1;
    border-radius: 3px;
    transition: all 0.3s ease;
}

    .password-strength.weak {
        background-color: #dc3545;
        width: 30%;
    }

    .password-strength.medium {
        background-color: #ffc107;
        width: 60%;
    }

    .password-strength.strong {
        background-color: #28a745;
        width: 100%;
    }

.password-requirements {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 15px;
}

    .password-requirements ul {
        padding-left: 1.2rem;
        margin-top: 5px;
    }

/* 提交按鈕增強效果 */
.btn-login {
    width: auto;
    min-width: 150px;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    display: block;
    margin: 1.5rem auto 0;
    border-radius: 4px;
}

/* 註冊表單特定調整 */
#registerForm .form-floating:last-of-type {
    margin-bottom: 1.8rem;
}

/* 響應式調整 */
@media (max-width: 767.98px) {
    .login-container {
        padding: 1.5rem;
    }
}