        .login-container {
            max-width: 400px;
            margin: 50px auto;
            padding: 30px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            box-sizing: border-box; /* 確保整個容器正確計算尺寸 */
        }
        
        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .form-group {
            margin-bottom: 20px;
            box-sizing: border-box; /* 確保表單群組正確計算尺寸 */
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #333;
        }
        
        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s;
            box-sizing: border-box; /* 確保 padding 不會超出容器 */
        }
        
        /* 密碼輸入容器 */
        .password-input-container {
            position: relative;
            display: flex;
            align-items: center;
        }
        
        .password-input-container .form-control {
            padding-right: 45px; /* 為按鈕預留空間 */
        }
        
        .password-toggle {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            border-radius: 3px;
            transition: background-color 0.3s;
            z-index: 1;
        }
        
        .password-toggle:hover {
            background-color: #f0f0f0;
        }
        
        .eye-icon {
            font-size: 18px;
            color: #666;
            user-select: none;
        }
        
        .password-toggle:focus {
            outline: 2px solid #007bff;
            outline-offset: 2px;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #007bff;
        }
        
        .btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .btn-primary {
            background-color: #007bff;
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #0056b3;
        }
        
        .btn-secondary {
            background-color: #6c757d;
            color: white;
            margin-top: 10px;
        }
        
        .btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }
        
        .error-message {
            color: #dc3545;
            background: #f8d7da;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        
        .success-message {
            color: #155724;
            background: #d4edda;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        
        .lockout-message {
            color: #856404;
            background: #fff3cd;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .remember-me input {
            margin-right: 8px;
        }
        
        .links {
            text-align: center;
            margin-top: 20px;
        }
        
        .links a {
            color: #007bff;
            text-decoration: none;
            margin: 0 10px;
        }
        
        .countdown {
            font-weight: bold;
            color: #dc3545;
        }
        
        /* 確保所有元素都使用 border-box */
        *, *::before, *::after {
            box-sizing: border-box;
        }
        
        /* 手機版響應式調整 */
        @media (max-width: 480px) {
            .login-container {
                margin: 20px;
                padding: 20px;
                max-width: none;
            }
            
            .form-control {
                font-size: 14px;
                padding: 10px;
            }
        }

        /* 第三方登入區塊 */
        .oauth-section {
          margin-top: 30px;
        }

        .divider {
          text-align: center;
          margin: 20px 0;
          position: relative;
        }

        .divider::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 0;
          right: 0;
          height: 1px;
          background: #e0e0e0;
        }

        .divider span {
          background: white;
          padding: 0 15px;
          color: #666;
          font-size: 14px;
        }

        .oauth-buttons {
          display: flex;
          flex-direction: column;
          gap: 12px;
        }

        .btn-google {
          background: #db4437;
          color: white;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 10px;
        }

        .btn-google:hover {
          background: #c23321;
        }

        .btn-facebook {
          background: #3b5998;
          color: white;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 10px;
        }

        .btn-facebook:hover {
          background: #2d4373;
        }

        .btn-line {
          background: #00b900;
          color: white;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 10px;
        }

        .btn-line:hover {
          background: #009900;
        }

        /* 圖示 */
        .icon-google::before { content: "G"; }
        .icon-facebook::before { content: "f"; }
        .icon-line::before { content: "L"; }